20 lines
360 B
Nix
20 lines
360 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.plugins.snippet.snippy;
|
||
|
in
|
||
|
{
|
||
|
options.plugins.snippet.snippy = with lib; {
|
||
|
enable = mkEnableOption "snippy";
|
||
|
|
||
|
package = mkPackageOption pkgs.vimPlugins "nvim-snippy" { };
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
plugin.nvim-snippy = {
|
||
|
name = "snippy";
|
||
|
inherit (cfg) package;
|
||
|
};
|
||
|
};
|
||
|
}
|