home: vim: configure diagnostics further

This is not only 'lsp_lines' configuration anymore, but the whole
display of diagnostics.
This commit is contained in:
Bruno BELANYI 2022-02-26 12:47:55 +01:00
parent 01d7ead121
commit d87fd7b9e1
2 changed files with 17 additions and 9 deletions

View file

@ -0,0 +1,17 @@
lua << EOF
-- Show LSP diagnostics on virtual lines over affected regions
require("lsp_lines").register_lsp_virtual_lines()
vim.diagnostic.config({
-- Disable virtual test next to affected regions
virtual_text = false,
-- Show diagnostics signs
signs = true,
-- Underline offending regions
underline = true,
-- Do not bother me in the middle of insertion
update_in_insert = false,
-- Show highest severity first
severity_sort = true,
})
EOF

View file

@ -1,9 +0,0 @@
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