Added missing git package in fugitive and neogit (#42)

* Added git to extra packages

* Added missing git package in fugitive and neogit
This commit is contained in:
Matilde Bravo 2022-10-03 19:17:31 +01:00 committed by GitHub
parent 8fffcdcbc4
commit 31b38e5649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,7 @@ mkPlugin attrs {
name = "fugitive"; name = "fugitive";
description = "Enable vim-fugitive"; description = "Enable vim-fugitive";
extraPlugins = [ pkgs.vimPlugins.vim-fugitive ]; extraPlugins = [ pkgs.vimPlugins.vim-fugitive ];
extraPackages = [ pkgs.git ];
# In typical tpope fashin, this plugin has no config options # In typical tpope fashin, this plugin has no config options
options = {}; options = {};

View file

@ -221,6 +221,8 @@ in
plenary-nvim plenary-nvim
] ++ optional cfg.integrations.diffview diffview-nvim; ] ++ optional cfg.integrations.diffview diffview-nvim;
extraPackages = [ pkgs.git ];
extraConfigLua = '' extraConfigLua = ''
require('neogit').setup(${setupOptions}) require('neogit').setup(${setupOptions})
''; '';

View file

@ -68,6 +68,7 @@ rec {
name, name,
description, description,
extraPlugins ? [], extraPlugins ? [],
extraPackages ? [],
options ? {}, options ? {},
... ...
}: let }: let
@ -84,7 +85,7 @@ rec {
} // pluginOptions; } // pluginOptions;
config = mkIf cfg.enable { config = mkIf cfg.enable {
inherit extraPlugins globals; inherit extraPlugins extraPackages globals;
}; };
}; };