From b9954f7e37a43fb720377bbd064fdf86d05bd2bd Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 15 Feb 2024 16:05:29 +0100 Subject: [PATCH] NeoVim: better telescope key bindings --- modules/hm/nvim/nvim-lspconfig-config.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hm/nvim/nvim-lspconfig-config.lua b/modules/hm/nvim/nvim-lspconfig-config.lua index 47a6685..335b288 100644 --- a/modules/hm/nvim/nvim-lspconfig-config.lua +++ b/modules/hm/nvim/nvim-lspconfig-config.lua @@ -24,6 +24,8 @@ local on_attach = function(client, bufnr) keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, opts) opts.desc = "Smart rename" keymap.set("n", "rn", vim.lsp.buf.rename, opts) + opts.desc = "Smart show diagnostics" + keymap.set("n", "D", "Telescope diagnostics", opts) opts.desc = "Smart show buffer diagnostics" keymap.set("n", "D", "Telescope diagnostics bufnr=0", opts) opts.desc = "Smart show line diagnostics"