Commit graph

1258 commits

Author SHA1 Message Date
65df9845f7
nvim: lsp: Non-method client functions are deprecated
We have no idea what non method client functions are or
imply in the context of Lua but who cares.
2024-12-21 12:42:45 +05:30
03c5792e63
nvim: plugins: Add guess-indent as vim-sleuth replacement 2024-12-19 18:15:26 +05:30
40fc22f5be
nvim: plugins: Drop marks, portal and vim-repeat/sleuth 2024-12-19 18:15:26 +05:30
28c060e0fe
nvim: lsp: Drop code action indicator 2024-12-19 09:49:08 +05:30
72b1a2f0ea
nvim: lsp: Use vim.lsp.config and vim.lsp.enable
Use the newly introduced config and enable APIs.
https://github.com/neovim/neovim/pull/31031

We drop the settings for deno and typescript here. We added
javascript and typescript support as it was required for our
last client a while back. Drop them for now, we will add it
back if we need to. ts_ls is absolute garbage and hopefully
we won't have to work with the fuck all nonsense that is the
javascript ecosystem in the foreseeable future.
2024-12-19 09:49:08 +05:30
7c865bf17e
nvim: plugins: Drop snippets
We added snippets support but never use snippets at all.
2024-12-19 09:49:08 +05:30
4a622b4b74
nvim: treesitter: Fix incorrect file reference for lean 2024-12-19 09:49:08 +05:30
251de7448c
nvim: plugins: Drop parinfer
We do not work with any Scheme/LISP languages to keep this around.
2024-12-19 09:49:08 +05:30
01915f0d50
nvim: various-textobjs: Update configuration
useDefaultKeymaps is deprecated.
2024-12-09 10:40:32 +05:30
6c304556f8
nvim: lsp-utils: Miscellaneous clean ups
- Drop bash language server. We do not want to run JS/TS
based garbage. Now that we do not need to do any official
work on JS/TS, we can get rid of all npm/yarn/pnpm shit.
- Remove settings for inlay hints for TS server as lot of
idiots writing TS do not provide type annotations all the
time. ts_ls is also not useful at providing type hints, so
inlay hints have never been useful.
- Prevent clangd from running on single files.
2024-12-07 19:35:47 +05:30
b1a6212749
nvim: fugitive: Improve git blame
Improve git blame by
- w: Ignoring white space
- C: Detect lines moved or copied in the same commit
- C: The commit that created the file
- C: Any commit at all
2024-12-03 17:52:09 +05:30
cdde7294ff
nvim: after/ftplugin/haskell: Lint on save
Now that we use static-ls as Haskell LSP which does not
have hlint support for diagnostics yet, lint on save to
get hlint diagnostics.
2024-11-30 18:46:05 +05:30
bcfd9372dc
nvim: fugitive: Add mapping to view file on another branch 2024-11-28 11:29:50 +05:30
036b6652a9
nvim: lsp: Do not attach LSP if file is opened via git
We might use Git show to view git revision of the file
on another branch and we do not want to attach LSP to
this file. This file will be opened as a temporary with
path /tmp/nvim/<something>.

On similar lines to commit 1eec783a20.
2024-11-28 11:29:50 +05:30
dd1b17287f
nvim: lsp-utils: Update bash configuration 2024-11-26 22:06:10 +05:30
3f42d117b6
nvim: lsp-utils: Update Deno configuration 2024-11-26 22:06:10 +05:30
d19e7b4382
nvim: after/ftplugin/sh: Drop language server & enable linting on save
Bash language server is written in typescript and we do
not want to keep node, npm or pnpm around for this.
2024-11-23 19:14:15 +05:30
639739bbc3
nvim: treesitter: Enable Typst 2024-11-21 16:14:27 +05:30
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