Commit graph

1240 commits

Author SHA1 Message Date
474e62d942
nvim: lsp: offset_encoding is now a required parameter
See
629483e24e
2024-11-21 16:14:27 +05:30
292ee9428e
nvim: after/ftplugin/zig: Do not add library source to buffer list 2024-11-19 00:07:14 +05:30
d8187ee775
nvim: after/ftplugin/json: Lint on save 2024-11-18 11:03:06 +05:30
2a5121372f
nvim: after/plugin/nvim-lint: Enable jq for json
While at it, use eslint and not eslint_d for javascript
and typescript.
2024-11-18 11:03:06 +05:30
cfe57543c6
nvim: after/ftplugin/rust: Update makeprg
`--all` is deprecated and is just an alias to `--workspace`.
2024-11-17 15:12:24 +05:30
deb5f2b7d4
nvim: after/ftplugin/zig: Set compiler
See runtime/compiler/zig_build.vim.
2024-11-17 15:12:24 +05:30
8662acc7e8
nvim: after/ftplugin/zig: Do not add Zig library to buffer list 2024-11-06 18:39:03 +05:30
cc05f03ddf
nvim: lua/lsp-utils: Disable proc macros for rust-analyzer 2024-11-05 13:00:11 +05:30
9075d7b321
nvim: after/ftplugin/systemd: Lint systemd files on save 2024-11-03 16:19:01 +05:30
6afc6f90dd
nvim: after/plugin/nvim-lint: Enable systemd-analyze 2024-11-03 16:19:01 +05:30
aad1c8c217
nvim: treesitter: Enable Zig 2024-11-02 20:24:08 +05:30
18502cbb50
nvim: Switch to static-ls for Haskell LSP 2024-10-29 22:43:53 +05:30
86c1da359e
nvim: lsp: document_symbol is now mapped by default to gO
See :help lsp-defaults.
2024-10-28 19:49:31 +05:30
1d1a3539c8
nvim: Enable LSP for zig 2024-10-28 10:36:45 +05:30
a4073a924c
nvim: lsp: Drop LSP default mappings
See :help lsp-defaults.
2024-10-22 13:11:23 +05:30
ae7a18490d
nvim: autocmd: vim.highlight renamed to vim.hl 2024-10-21 11:06:40 +05:30
bfe01585ad
nvim: Enable LSP for gleam 2024-10-20 21:47:11 +05:30
65b0402abf
nvim: keymappings: Drop unimpaired style mappings
Unimpaired style mappings are now default.
https://github.com/neovim/neovim/pull/28525
2024-10-20 21:47:11 +05:30
18106532fc
nvim: Enable LSP for Elixir 2024-10-20 15:59:41 +05:30
9cddec5e81
nvim: treesitter: Enable BEAM languages 2024-10-20 15:59:18 +05:30
24cd59f124
nvim: lsp: Fix use of diagnostic API
With get_line_diagnostics being deprecated we switched to
vim.diagnostic.get but vim diagnostics are different from
LSP diagnostics and need to be converted.

We copy the code from get_line_diagnostics here as that
will be dropped in 0.12. Strangely the issue only kept
coming up with ruff/Python and HLS/Haskell.

This fixes commit ef0daa5d4 which broke code action
light bulb functionality.
2024-09-19 16:03:57 +05:30
53e2c56631
nvim: treesitter: Add VHDL & drop a few others 2024-09-19 16:03:09 +05:30
e3aa8c1dee
nvim: lsp-utils: Drop preview flag & fix root files for ruff 2024-09-09 16:02:12 +05:30
ef0daa5d4c
nvim: lsp: Drop use of deprecated get_line_diagnostics 2024-08-02 14:26:07 +05:30
1eec783a20
nvim: lsp: Do not attach LSP if file is opened via git
We might use Gedit to view older git revision of the file to which we do
not want to attach LSP.
2024-08-02 14:26:06 +05:30
91d160e157
nvim: init: Override default grepprg
When setting grepprg to ripgrep, neovim passes -uuu which disables
ripgrep's default filtering which also ends up searching in binary
files which is not what we want. It also ignores our ripgreprc and
.ignore we have setup. neovim tries to match behaviour of standard
grep which we do not care about.

The default behaviour becomes a lot confusing when we start getting
results from clangd cache or search index.
2024-07-31 12:16:20 +05:30
29a5df7807
nvim: lsp-utils: Enable multiple component loading for HLS 2024-07-16 12:02:01 +05:30
db041f6281
nvim: init: Enable fuzzy matching for completion candidates 2024-07-15 15:10:51 +05:30
0e45f3229a
nvim: autocmd: Open quickfix & localist list if populated
This is required when using vimgrep without which we will
have to invoke copen or lopen manually.
2024-07-13 20:03:35 +05:30
e54dd071f6
nvim: keymappings: Add key mapping for invoking vimgrep 2024-07-13 20:02:43 +05:30
0a323f355f
nvim: lsp: Drop use of deprecated buf_get_clients 2024-07-10 20:07:23 +05:30
92797dffb1
nvim: lsp: Use buffer local variant for user command 2024-07-10 16:45:33 +05:30
6284b83b1f
nvim: Update paq 2024-06-09 17:33:10 +05:30
19281ca606
nvim: keymappings: [D and ]D are now mapped by default
These are now mapped for jumping to first and last diagnostic in the
buffer.
2024-06-03 12:06:17 +05:30
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