Dmitriy Pleshevskiy
f3926f6365
do not import to local variable by default. Instead you should set varName option.
19 lines
352 B
Nix
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";
|
|
};
|
|
};
|
|
}
|