From b0f054b1e6c97febe49225bfd1efa4fbb68e5634 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 2 May 2023 21:29:49 +0100 Subject: [PATCH] home: vim: configure 'lsp_lines' --- home/vim/lua/ambroisie/lsp.lua | 2 ++ home/vim/plugin/settings/lsp-lines.lua | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 home/vim/plugin/settings/lsp-lines.lua diff --git a/home/vim/lua/ambroisie/lsp.lua b/home/vim/lua/ambroisie/lsp.lua index 8d347d3..f935c2f 100644 --- a/home/vim/lua/ambroisie/lsp.lua +++ b/home/vim/lua/ambroisie/lsp.lua @@ -11,6 +11,8 @@ M.on_attach = function(client, bufnr) vim.diagnostic.config({ -- Disable virtual test next to affected regions virtual_text = false, + -- Also disable virtual diagnostics under the affected regions + virtual_lines = false, -- Show diagnostics signs signs = true, -- Underline offending regions diff --git a/home/vim/plugin/settings/lsp-lines.lua b/home/vim/plugin/settings/lsp-lines.lua new file mode 100644 index 0000000..9c79818 --- /dev/null +++ b/home/vim/plugin/settings/lsp-lines.lua @@ -0,0 +1,3 @@ +local lsp_lines = require("lsp_lines") + +lsp_lines.setup()