mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 19:35:01 +02:00
neogit: package option
This commit is contained in:
parent
09ed640a0f
commit
f5a3b9b7dd
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue