mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 22:04:31 +02:00
plugins/efmls: use efmLangServerPackage option
This commit is contained in:
parent
9832cb86fb
commit
da1a10d0f3
2 changed files with 12 additions and 1 deletions
|
@ -20,6 +20,10 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
efmLangServerPackage = lib.mkPackageOption pkgs "efm-langserver" {
|
||||||
|
nullable = true;
|
||||||
|
};
|
||||||
|
|
||||||
externallyManagedPackages = lib.mkOption {
|
externallyManagedPackages = lib.mkOption {
|
||||||
type = with lib.types; either (enum [ "all" ]) (listOf str);
|
type = with lib.types; either (enum [ "all" ]) (listOf str);
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -151,6 +155,6 @@ in
|
||||||
extraOptions.settings.languages = setupOptions;
|
extraOptions.settings.languages = setupOptions;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = [ pkgs.efm-langserver ] ++ (map (v: cfg.toolPackages.${v}) nixvimPkgs.right);
|
extraPackages = [ cfg.efmLangServerPackage ] ++ (map (v: cfg.toolPackages.${v}) nixvimPkgs.right);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,4 +145,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.efmls-configs = {
|
||||||
|
enable = true;
|
||||||
|
efmLangServerPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue