diff --git a/home/vim/plugin/settings/diagnostics.vim b/home/vim/plugin/settings/diagnostics.vim new file mode 100644 index 0000000..8327866 --- /dev/null +++ b/home/vim/plugin/settings/diagnostics.vim @@ -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 diff --git a/home/vim/plugin/settings/lsp_lines.vim b/home/vim/plugin/settings/lsp_lines.vim deleted file mode 100644 index 10b46a3..0000000 --- a/home/vim/plugin/settings/lsp_lines.vim +++ /dev/null @@ -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