summaryrefslogtreecommitdiff
path: root/lua/plugins/lsp
diff options
context:
space:
mode:
authorChristian Segundo2025-01-17 23:01:52 +0100
committerChristian Segundo2025-01-17 23:01:52 +0100
commit5b7f52d7f85b69c7dbb5b2951c67d7fcc90fe94f (patch)
tree13cd20f419fd24d5e94c1531607f1f3e97e2614e /lua/plugins/lsp
parentf7522188d1fdaa038724b0bd75d343558dc27c00 (diff)
downloadconfig-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')
-rw-r--r--lua/plugins/lsp/config.lua2
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",