Skip to content

Commit

Permalink
slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
birdee committed Nov 14, 2024
1 parent 9e27d34 commit febf1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ in
# this function gets passed all the way into the wrapper so that we can also add
# other dependencies that get resolved later in the process such as treesitter grammars.
nixCats = allPluginDeps: pkgs.stdenv.mkDerivation (let
isUnwrappedCfgPath = settings.wrapRc == false && settings.unwrappedCfgPath != null && builtins.isString settings.unwrappedCfgPath;
isStdCfgPath = settings.wrapRc == false && ! isUnwrappedCfgPath;
isUnwrappedCfgPath = settings.wrapRc == false && builtins.isString settings.unwrappedCfgPath;
isStdCfgPath = settings.wrapRc == false && ! builtins.isString settings.unwrappedCfgPath;

nixCats_config_location = if isUnwrappedCfgPath then "${settings.unwrappedCfgPath}"
else if isStdCfgPath then ncTools.mkLuaInline ''vim.fn.stdpath("config")''
Expand Down

0 comments on commit febf1cf

Please sign in to comment.