modules/luasnip: add settings

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-10 00:27:03 +03:00
parent b7431ca7d7
commit c7b8eebba1
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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;
}; };
}; };
} }