diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index b537c7f..cb75d7d 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -109,6 +109,13 @@ local function on_attach(client, bufnr) "lua vim.lsp.buf.signature_help()", { buffer = bufnr, desc = "Signature help" } ) + map("n", "lo", function() + if vim.diagnostic.is_disabled(0) then + vim.diagnostic.enable(0) + else + vim.diagnostic.disable(0) + end + end, { buffer = bufnr, desc = "Disable buffer diagnostics" }) if vim.g.format_on_save then require("lsp-setup.utils").format_on_save(client)