18 lines
332 B
Nix
18 lines
332 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.plugins.snippet.luasnip;
|
|
in
|
|
{
|
|
options.plugins.snippet.luasnip = with lib; {
|
|
enable = mkEnableOption "luasnip";
|
|
|
|
package = mkPackageOption pkgs.vimPlugins "luasnip" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugin.luasnip = {
|
|
inherit (cfg) package;
|
|
};
|
|
};
|
|
}
|