mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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,9 +59,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
callSetup = false;
|
callSetup = false;
|
||||||
hasLuaConfig = false;
|
hasLuaConfig = false;
|
||||||
settingsDescription = "Plugin configuration (`vim.g.git_worktree`).";
|
settingsDescription = "Plugin configuration (`vim.g.git_worktree`).";
|
||||||
extraConfig =
|
extraConfig = cfg: {
|
||||||
cfg:
|
|
||||||
lib.mkIf cfg.enable {
|
|
||||||
assertions = lib.nixvim.mkAssertions "plugins.git-worktree" {
|
assertions = lib.nixvim.mkAssertions "plugins.git-worktree" {
|
||||||
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
assertion = cfg.enableTelescope -> config.plugins.telescope.enable;
|
||||||
message = ''
|
message = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue