diff --git a/home/vim/default.nix b/home/vim/default.nix index 9fac4c6..574b01e 100644 --- a/home/vim/default.nix +++ b/home/vim/default.nix @@ -64,6 +64,7 @@ in # LSP and linting lightline-lsp + lsp_lines-nvim # Show diagnostics *over* regions null-ls-nvim # LSP integration for linters and formatters plenary-nvim # 'null-ls' dependency ]; diff --git a/home/vim/plugin/settings/lsp_lines.vim b/home/vim/plugin/settings/lsp_lines.vim new file mode 100644 index 0000000..10b46a3 --- /dev/null +++ b/home/vim/plugin/settings/lsp_lines.vim @@ -0,0 +1,9 @@ +lua << EOF +-- Show LSP diagnostics on virtual lines over affected regions +require("lsp_lines").register_lsp_virtual_lines() + +-- Disable virtual test next to affected regions +vim.diagnostic.config({ + virtual_text = false, +}) +EOF