Add keybindings to enable, disable and toggle

...diagnostics
This commit is contained in:
Oliver Davies 2025-01-08 20:55:14 +00:00
parent f94bf1e883
commit e3a11b8d06

View file

@ -124,3 +124,11 @@ vim.api.nvim_create_autocmd("LspAttach", {
vim.keymap.set("n", "<space>ca", vim.lsp.buf.code_action, { buffer = 0 }) vim.keymap.set("n", "<space>ca", vim.lsp.buf.code_action, { buffer = 0 })
end, end,
}) })
vim.keymap.set("n", "<leader>dd", function()
vim.diagnostic.enable(false)
end)
vim.keymap.set("n", "<leader>de", function()
vim.diagnostic.enable(true)
end)