From 5160384b1020dba532090b4a5266c2667ffcd717 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 9 Jan 2025 22:00:00 +0000 Subject: [PATCH] Reset diagnostics after disabling --- nvim/lua/opdavies/lsp/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nvim/lua/opdavies/lsp/init.lua b/nvim/lua/opdavies/lsp/init.lua index cf59995..b12d26b 100644 --- a/nvim/lua/opdavies/lsp/init.lua +++ b/nvim/lua/opdavies/lsp/init.lua @@ -127,6 +127,7 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.keymap.set("n", "dd", function() vim.diagnostic.enable(false) + vim.diagnostic.reset() end) vim.keymap.set("n", "de", function()