fix(snacks_picker): respect lazyvim.config.kind_filter

This commit is contained in:
ding.zhao 2025-01-16 17:33:49 +08:00
parent 4f31bfab86
commit 30482c7dea

View file

@ -112,7 +112,7 @@ return {
{ "gr", function() Snacks.picker.lsp_references() end, nowait = true, desc = "References" }, { "gr", function() Snacks.picker.lsp_references() end, nowait = true, desc = "References" },
{ "gI", function() Snacks.picker.lsp_implementations() end, desc = "Goto Implementation" }, { "gI", function() Snacks.picker.lsp_implementations() end, desc = "Goto Implementation" },
{ "gy", function() Snacks.picker.lsp_type_definitions() end, desc = "Goto T[y]pe Definition" }, { "gy", function() Snacks.picker.lsp_type_definitions() end, desc = "Goto T[y]pe Definition" },
{ "<leader>ss", function() Snacks.picker.lsp_symbols() end, desc = "LSP Symbols", has = "documentSymbol" }, { "<leader>ss", function() Snacks.picker.lsp_symbols({ filter = LazyVim.config.kind_filter }) end, desc = "LSP Symbols", has = "documentSymbol" },
}) })
end, end,
}, },