mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
lsp/presets/lemminx: init
This commit is contained in:
parent
cd73e9dead
commit
69ea4a81bd
2 changed files with 25 additions and 0 deletions
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./deno.nix
|
||||
./harper.nix
|
||||
./lemminx.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
modules/plugins/lsp/presets/lemminx.nix
Normal file
24
modules/plugins/lsp/presets/lemminx.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.lemminx;
|
||||
in {
|
||||
options.vim.lsp.presets.lemminx = {
|
||||
enable = mkEnableOption "Lemminx Language Server";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.lemminx = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.lemminx)];
|
||||
root_markers = [".git"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue