nixeovim/modules/plugins/snippet/ultisnips.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
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";
};
};
}