Commit graph

1206 commits

Author SHA1 Message Date
1d22c2659c
nvim: lsp: Fix log level 2024-05-23 14:04:28 +05:30
b353cd07ee
nvim: lsp-utils: Use server component from ruff 2024-05-23 13:59:29 +05:30
1ec6aee797
nvim: after/ftplugin/markdown: Set conceallevel to 2
neovim 0.10 introduces experimental support for hyperlinks using
OSC 8 sequence. By default, this is used in Markdown for links of
the form [example](https://example.com). If terminal supports the
OSC 8 escape sequence, then the text example in the neovim buffer
will contain a hyperlink that can be clicked and it will open in
web browser.

This means markdown files with conceallevel=2 look much closer to
the rendered output.
2024-05-17 11:35:28 +05:30
7ef1a00db0
nvim: after/ftplugin/haskell: Disable vim-matchup 2024-05-11 21:20:42 +05:30
6ba7646ad9
Revert "nvim: after/ftplugin/haskell: Update tags on file save"
This reverts commit 6f78a23ab3.
2024-05-11 20:31:51 +05:30
420d643338
nvim: lsp: Inlay hints API has changed
With the recent change to the API, without passing buffer number as
0 for the current buffer, inlay hints gets enabled for all buffers.
2024-05-06 19:22:01 +05:30
dc40ccac1e
nvim: keymappings: Remove diagnostic mappings which are now default 2024-04-27 11:36:41 +05:30
cb46c82d53
nvim: lsp-utils: Use new vim.fs.root function for getting root directory
38b9c322c9
2024-04-25 16:17:36 +05:30
5623d7c004
nvim: lsp: Inlay hints API has changed 2024-04-19 11:07:28 +05:30
3f5b09dd7d
nvim: after/plugin/mini: Enable wrap around with hunk navigation 2024-04-17 18:39:08 +05:30
6617280944
nvim: statusline: Do not set winbar for empty filename 2024-04-12 20:26:03 +05:30
cd50d8f956
nvim: statusline: Make winbar status be relative to current directory
We want file path being shown in winbar to be relative to the current
directory or in our case frequently the git root. For whatever reason,
only the first opened leftmost split would show the file path relative
to current git root while any files opened later would show the full
path starting from `HOME`/~ directory. So something around how '%f%m%r'
actually works or how it is being used to set winbar has been a problem.
2024-04-12 11:01:26 +05:30
f27f6629de
nvim: after/ftplugin/c: Do not add include files to buffer list
Hide header files from /usr/include from the buffer list.
2024-04-11 16:07:55 +05:30
a4b9b3fd97
nvim: after/plugin/mini: Drop comment
Commenting support is built-in now, see
73de98256c
2024-04-09 15:13:54 +05:30
f3736630c0
nvim: statusline: Fix git status being nil
signs.add/change/delete can be nil for a file not yet being tracked
with git. This was broken in 703d23c.
2024-04-09 15:13:54 +05:30
767ae28f4f
nvim: plugins: Drop gitsigns 2024-04-08 14:49:42 +05:30
703d23c76e
nvim: after/plugin/mini: Switch to mini.diff from gitsigns 2024-04-08 14:49:36 +05:30
97bdd3d9e1
nvim: lsp-utils: Enable HLS for cabal files 2024-04-04 15:10:03 +05:30
84f729f3c7
nvim: after/ftplugin/C: Do not run gst-indent after buffer save
This seems to interfere with git signs tracking among other things.
While at it move the remaining configuration to Lua.
2024-03-30 16:47:04 +05:30
5af13bb98f
nvim: init: Trivial alignment clean up 2024-03-20 18:24:07 +05:30
bf4029aea3
nvim: init: Disable Rust ftplugin mappings
See
920ef1fd71.
2024-03-20 18:24:07 +05:30
86747c619d
nvim: Add support for lean
Tree sitter queries are copied over from lean.nvim.
2024-02-19 21:00:13 +05:30
e5459121b1
nvim: Update paq 2024-02-18 21:15:04 +05:30
2205797c31
nvim: Set the matchup matchparen offscreen method to popup 2024-02-05 16:17:38 +05:30
0dad89e0fb
nvim: plugin/shell: Add helper to get decimal & hexadecimal values 2024-01-11 13:24:26 +05:30
384eed0b5c
nvim: treesitter: Add parsers for C, lua, vim & vimdoc
We were getting errors on trying to open vim help files. As per
nvim-treesitter, parsers for C, lua, query, vim & vimdoc should
always be installed.
2024-01-09 12:45:54 +05:30
d974be35c2
nvim: lsp-utils: Update Haskell LSP settings
checkProject if set to true, type checks the entire project on initial
load. If activated by default which it is, can lead to bad performance
in large projects.
2024-01-07 20:19:20 +05:30
b2e66cbff4
nvim: Use monokai colour scheme 2024-01-01 22:34:17 +05:30
795389215c
nvim: autoload/ftplugin: git: Update git rebase branch implementation
See this for reference.
https://andrewlock.net/working-with-stacked-branches-in-git-is-easier-with-update-refs/
2023-12-21 16:36:02 +05:30
07f81f1496
nvim: Drop our yolokai theme and use default 2023-12-18 17:38:23 +05:30
a36d7279f5
nvim: plugins: paq uses build instead of run now 2023-12-18 17:36:37 +05:30
6089779a48
nvim: Update paq 2023-12-18 17:36:37 +05:30
556afeabcc
nvim: init: Use OSC 52 for copying to system clipboard in SSH session 2023-12-14 13:40:14 +05:30
e18c14b0e6
nvim: lsp: Do not include declaration in reference lookups 2023-12-04 12:40:08 +05:30
020d9ed8a6
nvim: lsp: Inlay hints API has changed 2023-11-15 13:53:21 +05:30
940c66406f
nvim: Use Ruff as Python LSP
Though Ruff is not an LSP in the LSP sense but using it this way
gives us formatting and linting via code actions. All other Python
LSP servers are garbage anyway.
2023-10-26 13:06:11 +05:30
6fa44274e1
nvim: after/plugin/gitsigns: watch_gitdir.interval is deprecated 2023-10-16 18:41:09 +05:30
fc80b95131
nvim: lsp-utils: Configuration updates in line with lspconfig 2023-10-14 10:34:11 +05:30
bac3f8b577
nvim: Drop Python LSP
All Python LSP servers are garbage. Jedi was being horribly slow.
We only care about Python for GStreamer/GObject work where Python
GObject's missing type annotations prevent us from using something
like Pyright or similar. Just drop all this crap. Fuck Python!.
2023-09-15 11:46:05 +05:30
39c8f2890a
nvim: plugin/epoch-converter: Use UTC time zone 2023-09-14 14:50:23 +05:30
064df213f2
nvim: treesitter: Add back bash, markdown & python
We had dropped these in commit f349a32 since these are now included
upstream but it seems when using neovim build from source, upstream
bundled parsers do not get updated at the same cadence as treesitter
plugin. This results in breaking syntax highlighting and we have
faced this now for python and bash. Bash is still broken.
2023-09-12 12:20:42 +05:30
2bb8c85003
nvim: Update paq 2023-08-30 13:48:23 +05:30
ba29cb1d56
nvim: treesitter: Drop teal 2023-08-24 15:58:00 +05:30
b10f5e47e7
nvim: colors/yolokai: Switch to Starlight
Colour Palette taken from
https://github.com/CosmicToast/starlight
2023-07-28 17:45:30 +05:30
95bbaa2b97
nvim: lsp: Drop mapping for hover
K is mapped to hover by default now. So let's drop our own mapping
and just use K.
2023-07-17 12:16:23 +05:30
6313ece287
nvim: after/plugin/fzf-lua: Add a mapping for bcommits in visual mode
The <cmd> is necessary, as `:` exits visual mode. Also, while at it
use vim.keymap.set instead of nvim_set_keymap.

Also see, https://github.com/ibhagwan/fzf-lua/issues/816.
2023-07-12 14:30:40 +05:30
00da5c690f
nvim: colors: Minor clean up
The call to highlight_terminal was redundant since we were passing
just {}. Also remove cterm related settings. Upstream has diverged
significantly, so we need not care about upstream any more.
2023-07-11 16:08:31 +05:30
549bc29b6f
nvim: lsp: Update capabilities check
Dynamic capabilities were introduced in neovim with commit ddd92a7.

With dynamic registration of LSP capabilities, a client's `server_capabilities`
is no longer a sufficient indicator to see if a server supports a feature. We
instead need to use `client.supports_method(<method>)` which  considers both
the dynamic capabilities and static `server_capabilities`.
2023-07-11 16:08:31 +05:30
5b108ac9b4
nvim: plugins: Minor clean up
Also run TSUpdate if treesitter gets updated.
2023-07-11 16:08:31 +05:30
6dd655ebce
nvim: after/ftplugin/diff: Do not highlight white space 2023-07-07 17:52:01 +05:30