Fix: Remove direct PHPstan and CSFixer, because PHPactor allready includes them

This commit is contained in:
Dominik Säume 2025-01-13 15:02:43 +01:00
parent 16bafba644
commit 04fbca129b

View file

@ -7,8 +7,6 @@ function M.setup()
T.add_null_ls_module(function(null_ls)
return {
-- Diagnostics
null_ls.builtins.diagnostics.phpstan,
null_ls.builtins.diagnostics.phpcs,
null_ls.builtins.diagnostics.twigcs,
-- Formatter
null_ls.builtins.formatting.phpcsfixer.with({
@ -18,7 +16,12 @@ function M.setup()
}
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)
local config = { capabilities = capabilities }
lspconfig.phpactor.setup(config)