mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Allow configuring intelephense instead of phpactor
This commit is contained in:
parent
eca8692451
commit
083f379b8d
1 changed files with 17 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
|||
if lazyvim_docs then
|
||||
-- LSP Server to use for PHP.
|
||||
-- Set to "intelephense" to use intelephense instead of phpactor.
|
||||
vim.g.lazyvim_php_lsp = "intelephense"
|
||||
end
|
||||
|
||||
local lsp = vim.g.lazyvim_php_lsp or "phpactor"
|
||||
|
||||
return {
|
||||
recommended = {
|
||||
ft = "php",
|
||||
|
|
@ -13,7 +21,15 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
phpactor = {},
|
||||
phpactor = {
|
||||
enabled = lsp == "phpactor",
|
||||
},
|
||||
intelephense = {
|
||||
enabled = lsp == "intelephense",
|
||||
},
|
||||
[lsp] = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue