home: vim: add 'lsp_lines'
I dislike the diagnostics *next* to affected lines. This looks neater, though the best look would be a simple hover window or status line message instead, like ALE used to do. It might grow on me however.
This commit is contained in:
parent
729f60c471
commit
faa8ae6d1e
|
@ -64,6 +64,7 @@ in
|
||||||
|
|
||||||
# LSP and linting
|
# LSP and linting
|
||||||
lightline-lsp
|
lightline-lsp
|
||||||
|
lsp_lines-nvim # Show diagnostics *over* regions
|
||||||
null-ls-nvim # LSP integration for linters and formatters
|
null-ls-nvim # LSP integration for linters and formatters
|
||||||
plenary-nvim # 'null-ls' dependency
|
plenary-nvim # 'null-ls' dependency
|
||||||
];
|
];
|
||||||
|
|
9
home/vim/plugin/settings/lsp_lines.vim
Normal file
9
home/vim/plugin/settings/lsp_lines.vim
Normal file
|
@ -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
|
Loading…
Reference in a new issue