nixeovim/modules/plugins/snippet/snippy.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
360 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.plugins.snippet.snippy;
in
{
options.plugins.snippet.snippy = with lib; {
enable = mkEnableOption "snippy";
package = mkPackageOption pkgs.vimPlugins "nvim-snippy" { };
};
config = lib.mkIf cfg.enable {
plugin.nvim-snippy = {
inherit (cfg) package;
name = "snippy";
};
};
}