mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-22 12:33:29 +00:00
lsp/preset/gitlab-ci-ls: init
This commit is contained in:
parent
d390177b7f
commit
85c7ba8227
5 changed files with 48 additions and 19 deletions
|
|
@ -19,12 +19,13 @@
|
|||
./emmet-ls.nix
|
||||
./fish-lsp.nix
|
||||
./fsautocomplete.nix
|
||||
./gitlab-ci-ls.nix
|
||||
./gleam.nix
|
||||
./glsl_analyzer.nix
|
||||
./gopls.nix
|
||||
./harper.nix
|
||||
./helm-ls.nix
|
||||
./haskell-language-server.nix
|
||||
./helm-ls.nix
|
||||
./intelephense.nix
|
||||
./jdt-language-server.nix
|
||||
./jinja-lsp.nix
|
||||
|
|
|
|||
24
modules/plugins/lsp/presets/gitlab-ci-ls.nix
Normal file
24
modules/plugins/lsp/presets/gitlab-ci-ls.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.types) mkLspPresetEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.gitlab-ci-ls;
|
||||
in {
|
||||
options.vim.lsp.presets.gitlab-ci-ls = {
|
||||
enable = mkLspPresetEnableOption "gitlab-ci-ls" "GitLab CI" [];
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.gitlab-ci-ls = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.gitlab-ci-ls)];
|
||||
root_markers = [".git" ".gitlab"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue