From 8f3501838060d37affac7025d1ea06450fa7de85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 6 Apr 2022 11:25:17 +0200 Subject: lsp : diagnostics : virtual text not in insert mode --- lua/user/bufferline.lua | 2 +- lua/user/lsp/handlers.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/user/bufferline.lua b/lua/user/bufferline.lua index 7d98cf0..dff1e43 100644 --- a/lua/user/bufferline.lua +++ b/lua/user/bufferline.lua @@ -34,7 +34,7 @@ bufferline.setup { max_name_length = 30, max_prefix_length = 30, -- prefix used when a buffer is de-duplicated tab_size = 21, - diagnostics = false, -- | "nvim_lsp" | "coc", + diagnostics = true, -- | "nvim_lsp" | "coc", diagnostics_update_in_insert = false, -- diagnostics_indicator = function(count, level, diagnostics_dict, context) -- return "("..count..")" diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index b7b1a92..907f479 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -15,12 +15,12 @@ M.setup = function() local config = { -- disable virtual text - virtual_text = false, + virtual_text = true, -- show signs signs = { active = signs, }, - update_in_insert = true, + update_in_insert = false, underline = true, severity_sort = true, float = { -- cgit v1.1-2-g2b99