From 5b7f52d7f85b69c7dbb5b2951c67d7fcc90fe94f Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Fri, 17 Jan 2025 23:01:52 +0100 Subject: simplify whichkey config most lsp keybindings are now by default under gr so no need to set them manually see: https://github.com/neovim/neovim/pull/28650 and https://neovim.io/doc/user/lsp.html --- lua/plugins/lsp/config.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/plugins/lsp') diff --git a/lua/plugins/lsp/config.lua b/lua/plugins/lsp/config.lua index ef952b1..4a9469a 100644 --- a/lua/plugins/lsp/config.lua +++ b/lua/plugins/lsp/config.lua @@ -10,8 +10,10 @@ return { lsp_opts.capabilities.textDocument.completion.completionItem.snippetSupport = true require("lspconfig")[lsp].setup(lsp_opts) end + vim.keymap.set('n', 'grd', "lua vim.diagnostic.open_float()", { desc = 'Diagnostics floating window' }) end, init = function() + -- Show who is emitting the diagnostic vim.diagnostic.config({ float = { source = "always", -- cgit v1.2.3