diff --git a/plugins/by-name/git-worktree/default.nix b/plugins/by-name/git-worktree/default.nix index 54608700..f172cb96 100644 --- a/plugins/by-name/git-worktree/default.nix +++ b/plugins/by-name/git-worktree/default.nix @@ -5,14 +5,13 @@ pkgs, ... }: -with lib; let cfg = config.plugins.git-worktree; in { options = { plugins.git-worktree = { - enable = mkEnableOption "git-worktree"; + enable = lib.mkEnableOption "git-worktree"; package = lib.mkPackageOption pkgs "git-worktree" { default = [ @@ -25,7 +24,7 @@ in nullable = true; }; - enableTelescope = mkEnableOption "telescope integration"; + enableTelescope = lib.mkEnableOption "telescope integration"; changeDirectoryCommand = helpers.defaultNullOpts.mkStr "cd" '' The vim command used to change to the new worktree directory. @@ -65,7 +64,7 @@ in inherit autopush; }; in - mkIf cfg.enable { + lib.mkIf cfg.enable { assertions = [ { assertion = cfg.enableTelescope -> config.plugins.telescope.enable;