fix(lsp): make intelephense index large PHP repos, add LSP pickers
This commit is contained in:
6 files changed
+60
-34
No files matched your search
@@ -51,6 +51,18 @@ function M.setup()
|
||||
end
|
||||
map("<leader>li", "<cmd>checkhealth vim.lsp<cr>", "LSP info")
|
||||
map("<leader>lr", restart, "Restart LSP servers")
|
||||
-- Location lists in a snacks picker instead of quickfix; a single result jumps directly.
|
||||
for lhs, spec in pairs({
|
||||
grr = { "lsp_references", "References" },
|
||||
gri = { "lsp_implementations", "Implementations" },
|
||||
grt = { "lsp_type_definitions", "Type definitions" },
|
||||
gai = { "lsp_incoming_calls", "Incoming calls" },
|
||||
gao = { "lsp_outgoing_calls", "Outgoing calls" },
|
||||
}) do
|
||||
map(lhs, function()
|
||||
require("snacks").picker[spec[1]]()
|
||||
end, spec[2])
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user