nixos/pkgsets/nvim/lsp/php.nix

20 lines
476 B
Nix
Raw Permalink Normal View History

{
lib,
config,
pkgs,
...
}:
lib.optionalString (lib.elem "nvim::lsp::php" config.machine.pkgs) # lua
''
lspconfig.phpactor.setup({
cmd = {"${pkgs.phpactor}/bin/phpactor", "language-server"},
init_options = {
["symfony.enabled"] = true,
["language_server_phpstan.enabled"] = true,
["language_server_phpstan.bin"] = "${pkgs.phpPackages.phpstan}/bin/phpstan",
["language_server_phpstan.level"] = 5,
},
})
''