Skip to content

Commit cb72126

Browse files
committed
plugins/fugitive: add compatibility with combinePlugins and mini.nvim
1 parent a1e5eba commit cb72126

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

plugins/git/fugitive.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@ helpers.vim-plugin.mkVimPlugin config {
1313

1414
maintainers = [ lib.maintainers.GaetanLepage ];
1515

16+
extraConfig = cfg: {
17+
# mini.nvim and fugitive have duplicate doc tags
18+
performance.combinePlugins.standalonePlugins = lib.mkIf (
19+
config.performance.combinePlugins.enable && config.plugins.mini.enable
20+
) [ cfg.package ];
21+
};
22+
1623
# In typical tpope fashion, this plugin has no config options
1724
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
empty = {
3+
plugins.fugitive.enable = true;
4+
};
5+
6+
# combinePlugins when both mini.nvim and fugitive.vim are installed
7+
combine-plugins = {
8+
plugins = {
9+
fugitive.enable = true;
10+
mini.enable = true;
11+
};
12+
13+
performance.combinePlugins.enable = true;
14+
};
15+
}

0 commit comments

Comments
 (0)