Skip to content

Commit

Permalink
plugins/fugitive: add compatibility with combinePlugins and mini.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
stasjok committed Jul 19, 2024
1 parent a1e5eba commit cb72126
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/git/fugitive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ helpers.vim-plugin.mkVimPlugin config {

maintainers = [ lib.maintainers.GaetanLepage ];

extraConfig = cfg: {
# mini.nvim and fugitive have duplicate doc tags
performance.combinePlugins.standalonePlugins = lib.mkIf (
config.performance.combinePlugins.enable && config.plugins.mini.enable
) [ cfg.package ];
};

# In typical tpope fashion, this plugin has no config options
}
15 changes: 15 additions & 0 deletions tests/test-sources/plugins/git/fugitive.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
empty = {
plugins.fugitive.enable = true;
};

# combinePlugins when both mini.nvim and fugitive.vim are installed
combine-plugins = {
plugins = {
fugitive.enable = true;
mini.enable = true;
};

performance.combinePlugins.enable = true;
};
}

0 comments on commit cb72126

Please sign in to comment.