nixeovim/modules/plugins/snippet/ultisnips.nix

20 lines
368 B
Nix
Raw Permalink Normal View History

2024-05-09 18:41:09 +03:00
{ 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";
};
};
}