18 lines
772 B
Lua
18 lines
772 B
Lua
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,
|
|
}
|