nvim: move to services we do not specify a pkgset
This commit is contained in:
parent
465a6b19d1
commit
11b98d8146
45 changed files with 38 additions and 37 deletions
21
services/nvim/lsp/php.nix
Normal file
21
services/nvim/lsp/php.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.optionalAttrs (lib.elem "nvim::lsp::php" config.machine.pkgs) {
|
||||
phpactor = {
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue