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:
Bruno BELANYI 2022-02-25 18:21:35 +01:00
parent 729f60c471
commit faa8ae6d1e
2 changed files with 10 additions and 0 deletions

View file

@ -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
];

View 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