mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/git-worktree: remove useless 'mkIf cfg.enable' in extraConfig
This commit is contained in:
parent
c6ed00c902
commit
2e9afffc28
1 changed files with 13 additions and 15 deletions
|
@ -59,22 +59,20 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
callSetup = false;
|
||||
hasLuaConfig = false;
|
||||
settingsDescription = "Plugin configuration (`vim.g.git_worktree`).";
|
||||
extraConfig =
|
||||
cfg:
|
||||
lib.mkIf cfg.enable {
|
||||
assertions = lib.nixvim.mkAssertions "plugins.git-worktree" {
|
||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||
message = ''
|
||||
You have to enable `plugins.telescope` as `enableTelescope` is activated.
|
||||
'';
|
||||
};
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
|
||||
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "git_worktree" ];
|
||||
|
||||
globals.git_worktree = cfg.settings;
|
||||
extraConfig = cfg: {
|
||||
assertions = lib.nixvim.mkAssertions "plugins.git-worktree" {
|
||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||
message = ''
|
||||
You have to enable `plugins.telescope` as `enableTelescope` is activated.
|
||||
'';
|
||||
};
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
|
||||
plugins.telescope.enabledExtensions = lib.mkIf cfg.enableTelescope [ "git_worktree" ];
|
||||
|
||||
globals.git_worktree = cfg.settings;
|
||||
};
|
||||
|
||||
inherit (import ./deprecations.nix) optionsRenamedToSettings;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue