nixeovim/modules/plugins/snippet/snippy.nix

20 lines
360 B
Nix
Raw Normal View History

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;
name = "snippy";
2024-05-09 18:41:09 +03:00
};
};
}