Dmitriy Pleshevskiy
f3926f6365
do not import to local variable by default. Instead you should set varName option.
19 lines
368 B
Nix
19 lines
368 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.plugins.snippet.ultisnips;
|
|
in
|
|
{
|
|
options.plugins.snippet.ultisnips = with lib; {
|
|
enable = mkEnableOption "ultisnips";
|
|
|
|
package = mkPackageOption pkgs.vimPlugins "ultisnips" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
plugin.ultisnips = {
|
|
inherit (cfg) package;
|
|
name = "UltiSnips";
|
|
};
|
|
};
|
|
}
|