mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-18 21:17:23 +00:00
lsp/presets/intelephense: init
This commit is contained in:
parent
d9ff1b000b
commit
01525bf49b
2 changed files with 25 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
./basedpyright.nix
|
./basedpyright.nix
|
||||||
./deno.nix
|
./deno.nix
|
||||||
./harper.nix
|
./harper.nix
|
||||||
|
./intelephense.nix
|
||||||
./lemminx.nix
|
./lemminx.nix
|
||||||
./phan.nix
|
./phan.nix
|
||||||
./phpactor.nix
|
./phpactor.nix
|
||||||
|
|
|
||||||
24
modules/plugins/lsp/presets/intelephense.nix
Normal file
24
modules/plugins/lsp/presets/intelephense.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.meta) getExe;
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
|
cfg = config.vim.lsp.presets.intelephense;
|
||||||
|
in {
|
||||||
|
options.vim.lsp.presets.intelephense = {
|
||||||
|
enable = mkEnableOption "the Intelephense Language Server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim.lsp.servers.intelephense = {
|
||||||
|
enable = true;
|
||||||
|
cmd = [(getExe pkgs.intelephense) "--stdio"];
|
||||||
|
root_markers = [".git"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue