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