mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
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:
parent
8fffcdcbc4
commit
31b38e5649
3 changed files with 6 additions and 2 deletions
|
@ -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 = {};
|
||||||
|
|
|
@ -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})
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
rec {
|
rec {
|
||||||
# vim dictionaries are, in theory, compatible with JSON
|
# vim dictionaries are, in theory, compatible with JSON
|
||||||
toVimDict = args: toJSON
|
toVimDict = args: toJSON
|
||||||
(lib.filterAttrs (n: v: !isNull v) args);
|
(lib.filterAttrs (n: v: !isNull v) args);
|
||||||
|
|
||||||
# Black functional magic that converts a bunch of different Nix types to their
|
# Black functional magic that converts a bunch of different Nix types to their
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue