style(snacks): descriptions for LSP pickers

This commit is contained in:
Folke Lemaitre 2025-01-12 07:19:58 +01:00
parent 4e8bf608a8
commit 78576c1fa1
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -80,10 +80,10 @@ return {
local Keys = require("lazyvim.plugins.lsp.keymaps").get()
-- stylua: ignore
vim.list_extend(Keys, {
{ "gd", function() Snacks.picker.lsp_definitions() end },
{ "gr", function() Snacks.picker.lsp_references() end, nowait = true },
{ "gI", function() Snacks.picker.lsp_implementations() end },
{ "gy", function() Snacks.picker.lsp_type_definitions() end },
{ "gd", function() Snacks.picker.lsp_definitions() end, desc = "Goto Definition", has = "definition" },
{ "gr", function() Snacks.picker.lsp_references() end, nowait = true, desc = "References" },
{ "gI", function() Snacks.picker.lsp_implementations() end, desc = "Goto Implementation" },
{ "gy", function() Snacks.picker.lsp_type_definitions() end, desc = "Goto T[y]pe Definition" },
})
end,
},