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";
description = "Enable vim-fugitive";
extraPlugins = [ pkgs.vimPlugins.vim-fugitive ];
extraPackages = [ pkgs.git ];
# In typical tpope fashin, this plugin has no config options
options = {};

View file

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

View file

@ -2,7 +2,7 @@
with lib;
rec {
# vim dictionaries are, in theory, compatible with JSON
toVimDict = args: toJSON
toVimDict = args: toJSON
(lib.filterAttrs (n: v: !isNull v) args);
# Black functional magic that converts a bunch of different Nix types to their
@ -68,6 +68,7 @@ rec {
name,
description,
extraPlugins ? [],
extraPackages ? [],
options ? {},
...
}: let
@ -84,7 +85,7 @@ rec {
} // pluginOptions;
config = mkIf cfg.enable {
inherit extraPlugins globals;
inherit extraPlugins extraPackages globals;
};
};