diff options
author | Christian Segundo | 2025-01-17 23:01:52 +0100 |
---|---|---|
committer | Christian Segundo | 2025-01-17 23:01:52 +0100 |
commit | 5b7f52d7f85b69c7dbb5b2951c67d7fcc90fe94f (patch) | |
tree | 13cd20f419fd24d5e94c1531607f1f3e97e2614e /lua/plugins/lsp/config.lua | |
parent | f7522188d1fdaa038724b0bd75d343558dc27c00 (diff) | |
download | config-5b7f52d7f85b69c7dbb5b2951c67d7fcc90fe94f.tar.gz |
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
Diffstat (limited to 'lua/plugins/lsp/config.lua')
-rw-r--r-- | lua/plugins/lsp/config.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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', "<cmd>lua vim.diagnostic.open_float()<cr>", { desc = 'Diagnostics floating window' }) end, init = function() + -- Show who is emitting the diagnostic vim.diagnostic.config({ float = { source = "always", |