Added extra options (#62)

* Added extraOptions helper

* project-nvim: added extraOptions
This commit is contained in:
Alexander Nortung 2022-12-01 20:57:06 +01:00 committed by GitHub
parent 1bd5e97892
commit 90b8a45092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -5,7 +5,7 @@ let
helpers = import ../helpers.nix { inherit lib; };
in
{
options.plugins.project-nvim = {
options.plugins.project-nvim = helpers.extraOptionsOptions // {
enable = mkEnableOption "Enable project.nvim";
manualMode = mkOption {
@ -52,6 +52,7 @@ in
type = types.nullOr (types.either types.str helpers.rawType);
default = null;
};
};
config =
@ -66,7 +67,7 @@ in
silent_chdir = cfg.silentChdir;
scope_schdir = cfg.scopeChdir;
data_path = cfg.dataPath;
};
} // cfg.extraOptions;
in
mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.project-nvim ];