2024-05-09 18:41:09 +03:00
|
|
|
{ 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 = {
|
|
|
|
inherit (cfg) package;
|
2024-05-10 01:31:47 +03:00
|
|
|
name = "snippy";
|
2024-05-09 18:41:09 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|