feat: revamp core configuration for improved customizability

This commit is contained in:
Prad N committed 2025-03-28 15:33:06 -04:00
1 parent cee08ee5ec
commit 087a24541f
17 files changed
+604 -129

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
return {
"AstroNvim/astrolsp",
---@param opts AstroLSPOpts
opts = function(_, opts)
if opts.mappings.n.gd then opts.mappings.n.gd[1] = function() require("snacks.picker").lsp_definitions() end end
if opts.mappings.n.gI then opts.mappings.n.gI[1] = function() require("snacks.picker").lsp_implementations() end end
if opts.mappings.n.gy then
opts.mappings.n.gy[1] = function() require("snacks.picker").lsp_type_definitions() end
end
if opts.mappings.n["<Leader>lG"] then
opts.mappings.n["<Leader>lG"][1] = function() require("snacks.picker").lsp_workspace_symbols() end
end
if opts.mappings.n["<Leader>lR"] then
opts.mappings.n["<Leader>lR"][1] = function() require("snacks.picker").lsp_references() end
end
end,
}