fix(lsp): make intelephense index large PHP repos, add LSP pickers

This commit is contained in:
johannes committed 2026-11-25 15:56:21 +01:00
1 parent 14ece88643
commit 9b115965f8
6 files changed
+60 -34

No files matched your search

+12
View File
@@ -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,
})