diff --git a/nvim/lua/opdavies/lsp/init.lua b/nvim/lua/opdavies/lsp/init.lua index e4b4e07..cf59995 100644 --- a/nvim/lua/opdavies/lsp/init.lua +++ b/nvim/lua/opdavies/lsp/init.lua @@ -124,3 +124,11 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.keymap.set("n", "ca", vim.lsp.buf.code_action, { buffer = 0 }) end, }) + +vim.keymap.set("n", "dd", function() + vim.diagnostic.enable(false) +end) + +vim.keymap.set("n", "de", function() + vim.diagnostic.enable(true) +end)