From d87fd7b9e1172b264e5fe4635f89ade616a9e9ec Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 26 Feb 2022 12:47:55 +0100 Subject: [PATCH] home: vim: configure diagnostics further This is not only 'lsp_lines' configuration anymore, but the whole display of diagnostics. --- home/vim/plugin/settings/diagnostics.vim | 17 +++++++++++++++++ home/vim/plugin/settings/lsp_lines.vim | 9 --------- 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 home/vim/plugin/settings/diagnostics.vim delete mode 100644 home/vim/plugin/settings/lsp_lines.vim 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