nixeovim/modules/plugins/snippet/vsnip.nix
Dmitriy Pleshevskiy f3926f6365
modules/plugin: remove isDependency
do not import to local variable by default. Instead you should
set varName option.
2024-05-10 02:17:00 +03:00

19 lines
352 B
Nix

{ 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";
};
};
}