nixeovim/modules/plugins/snippet/luasnip.nix

25 lines
449 B
Nix
Raw Normal View History

2024-05-09 18:41:09 +03:00
{ config, lib, pkgs, ... }:
let
cfg = config.plugins.snippet.luasnip;
in
{
options.plugins.snippet.luasnip = with lib; {
enable = mkEnableOption "luasnip";
package = mkPackageOption pkgs.vimPlugins "luasnip" { };
2024-05-10 00:27:03 +03:00
settings = mkOption {
type = types.attrs;
default = { };
};
2024-05-09 18:41:09 +03:00
};
config = lib.mkIf cfg.enable {
plugin.luasnip = {
inherit (cfg) package;
2024-05-10 00:27:03 +03:00
setupSettings = cfg.settings;
2024-05-09 18:41:09 +03:00
};
};
}