mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-20 22:08:47 +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
|
./deno.nix
|
||||||
./harper.nix
|
./harper.nix
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
|
./phpactor.nix
|
||||||
./pyrefly.nix
|
./pyrefly.nix
|
||||||
./pyright.nix
|
./pyright.nix
|
||||||
./python-lsp-server.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