feat(LSP): Add PHP parser, remap LSP keybindings
This commit is contained in:
12
after/lsp/intelephense.lua
Normal file
12
after/lsp/intelephense.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -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")
|
||||
|
||||
3
after/plugin/which_key.lua
Normal file
3
after/plugin/which_key.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
local which_key = require("which-key")
|
||||
|
||||
which_key.setup()
|
||||
Reference in New Issue
Block a user