modules/luasnip: add settings
This commit is contained in:
parent
b7431ca7d7
commit
c7b8eebba1
1 changed files with 6 additions and 0 deletions
|
@ -8,11 +8,17 @@ in
|
||||||
enable = mkEnableOption "luasnip";
|
enable = mkEnableOption "luasnip";
|
||||||
|
|
||||||
package = mkPackageOption pkgs.vimPlugins "luasnip" { };
|
package = mkPackageOption pkgs.vimPlugins "luasnip" { };
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
default = { };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
plugin.luasnip = {
|
plugin.luasnip = {
|
||||||
inherit (cfg) package;
|
inherit (cfg) package;
|
||||||
|
setupSettings = cfg.settings;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue