nvf/modules/plugins/lsp/presets/phpantom.nix
Snoweuph 0b92b1783d
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
lsp/presets/phpantom: fix pkg used
2026-06-05 09:00:09 +00:00

24 lines
524 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
inherit (lib.nvim.types) mkLspPresetEnableOption;
cfg = config.vim.lsp.presets.phpantom;
in {
options.vim.lsp.presets.phpantom = {
enable = mkLspPresetEnableOption "phpantom" "PHPantom" [];
};
config = mkIf cfg.enable {
vim.lsp.servers.phpantom = {
enable = true;
cmd = [(getExe pkgs.phpantom-lsp)];
root_markers = [".phpantom.toml" "composer.json" ".php-version" ".git"];
};
};
}