dotfiles/nvim/.config
Sanchayan Maity 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
..
nvim nvim: lsp: Fix use of diagnostic API 2024-09-19 16:03:57 +05:30