nixeovim/modules/plugins/snippet/vsnip.nix

20 lines
352 B
Nix
Raw Permalink Normal View History

2024-05-09 18:41:09 +03:00
{ config, lib, pkgs, ... }:
let
cfg = config.plugins.snippet.vsnip;
in
{
options.plugins.snippet.vsnip = with lib; {
enable = mkEnableOption "vsnip";
package = mkPackageOption pkgs.vimPlugins "vim-vsnip" { };
};
config = lib.mkIf cfg.enable {
plugin.vim-vsnip = {
inherit (cfg) package;
name = "vsnip";
};
};
}