mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
lsp/presets/phpactor: init
This commit is contained in:
parent
27fdd3501a
commit
e1c3257ca3
2 changed files with 26 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
./deno.nix
|
||||
./harper.nix
|
||||
./lemminx.nix
|
||||
./phpactor.nix
|
||||
./pyrefly.nix
|
||||
./pyright.nix
|
||||
./python-lsp-server.nix
|
||||
|
|
|
|||
25
modules/plugins/lsp/presets/phpactor.nix
Normal file
25
modules/plugins/lsp/presets/phpactor.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.phpactor;
|
||||
in {
|
||||
options.vim.lsp.presets.phpactor = {
|
||||
enable = mkEnableOption "the PHPActor Language Server";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.phpactor = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.phpactor) "language-server"];
|
||||
root_markers = [".git" ".phpactor.json" ".phpactor.yml"];
|
||||
workspace_required = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue