forked from snoweuph/Dotfiles_nvim
Fix: Remove direct PHPstan and CSFixer, because PHPactor allready includes them
This commit is contained in:
parent
16bafba644
commit
04fbca129b
1 changed files with 6 additions and 3 deletions
|
@ -7,8 +7,6 @@ function M.setup()
|
||||||
T.add_null_ls_module(function(null_ls)
|
T.add_null_ls_module(function(null_ls)
|
||||||
return {
|
return {
|
||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
null_ls.builtins.diagnostics.phpstan,
|
|
||||||
null_ls.builtins.diagnostics.phpcs,
|
|
||||||
null_ls.builtins.diagnostics.twigcs,
|
null_ls.builtins.diagnostics.twigcs,
|
||||||
-- Formatter
|
-- Formatter
|
||||||
null_ls.builtins.formatting.phpcsfixer.with({
|
null_ls.builtins.formatting.phpcsfixer.with({
|
||||||
|
@ -18,7 +16,12 @@ function M.setup()
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
T.add_lsp_autoinstalls('phpactor', 'twiggy_language_server', 'stimulus_ls')
|
T.add_lsp_autoinstalls(
|
||||||
|
'phpactor',
|
||||||
|
'php-debug-adapter',
|
||||||
|
'twiggy_language_server',
|
||||||
|
'stimulus_ls'
|
||||||
|
)
|
||||||
T.add_lsps(function(lspconfig, capabilities)
|
T.add_lsps(function(lspconfig, capabilities)
|
||||||
local config = { capabilities = capabilities }
|
local config = { capabilities = capabilities }
|
||||||
lspconfig.phpactor.setup(config)
|
lspconfig.phpactor.setup(config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue