From aa83201e1cb9ee201ad6c702e38d28d8fcef0522 Mon Sep 17 00:00:00 2001 From: sajenim Date: Sat, 22 Apr 2023 10:41:56 +0800 Subject: [PATCH] diagnostic enable/disable mappings --- config/nvim/lua/user/lspconfig.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/nvim/lua/user/lspconfig.lua b/config/nvim/lua/user/lspconfig.lua index 5b3f025..e278cc1 100644 --- a/config/nvim/lua/user/lspconfig.lua +++ b/config/nvim/lua/user/lspconfig.lua @@ -1,5 +1,7 @@ -- Global mappings. -- See `:help vim.diagnostic.*` for documentation on any of the below functions +vim.keymap.set('n', 'de', vim.diagnostic.enable) +vim.keymap.set('n', 'dd', vim.diagnostic.disable) vim.keymap.set('n', 'e', vim.diagnostic.open_float) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', ']d', vim.diagnostic.goto_next)