Add phpactor support to neovim with default settings
This commit is contained in:
parent
34458b17f5
commit
6d645999f2
4 changed files with 18 additions and 0 deletions
|
|
@ -21,3 +21,6 @@ vim.opt.spell = true
|
|||
|
||||
-- 24-bit colour support
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- LSP/PHP setup
|
||||
vim.lsp.enable('phpactor')
|
||||
|
|
|
|||
10
neovim/lsp/phpactor.lua
Normal file
10
neovim/lsp/phpactor.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
cmd = { 'phpactor', 'language-server' },
|
||||
filetypes = { 'php' },
|
||||
root_markers = { '.git', 'composer.json', '.phpactor.json', '.phpactor.yml' },
|
||||
workspace_required = true,
|
||||
init_options = {
|
||||
["language_server_phpstan.enabled"] = false,
|
||||
["language_server_psalm.enabled"] = false,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue