neogit: package option

This commit is contained in:
Alexander Nortung 2023-01-17 21:42:47 +01:00
parent 09ed640a0f
commit f5a3b9b7dd

View file

@ -18,6 +18,12 @@ in
plugins.neogit = {
enable = mkEnableOption "Enable neogit";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.neogit;
description = "Plugin to use for neogit";
};
disableSigns = mkOption {
description = "Disable signs";
type = types.nullOr types.bool;
@ -217,7 +223,7 @@ in
in
mkIf cfg.enable {
extraPlugins = with pkgs.vimPlugins; [
neogit
cfg.package
plenary-nvim
] ++ optional cfg.integrations.diffview diffview-nvim;