feat(LSP): Add PHP parser, remap LSP keybindings

This commit is contained in:
Калистратов Максим
2026-06-01 12:52:53 +03:00
parent fd3267ca21
commit c00508b08d
8 changed files with 80 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
---@type vim.lsp.Config
return {
root_markers = { "composer.json" },
---@type lspconfig.settings.intelephense
settings = {
intelephense = {
environment = {
phpVersion = "8.3.30",
},
},
},
}

View File

@@ -16,8 +16,3 @@ telescope.setup(options)
utils.nmap("<leader>ff", builtin.find_files, "Find Files")
utils.nmap("<leader>fg", builtin.live_grep, "Live Grep")
utils.nmap("<leader>fr", builtin.lsp_references, "LSP References")
utils.nmap("<leader>fi", builtin.lsp_implementations, "LSP Implementations")
utils.nmap("<leader>fs", builtin.lsp_document_symbols, "LSP Document Symbols")
utils.nmap("<leader>fS", builtin.lsp_dynamic_workspace_symbols, "LSP Workspace Symbols")

View File

@@ -0,0 +1,3 @@
local which_key = require("which-key")
which_key.setup()