From a291bb1a78e43afdc3e6ec762c634721b71b435f Mon Sep 17 00:00:00 2001 From: Birdee <85372418+BirdeeHub@users.noreply.github.com> Date: Tue, 12 May 2026 22:55:05 -0700 Subject: [PATCH] fix(wrapperModules.fish): function abbreviations addresses https://github.com/BirdeeHub/nix-wrapper-modules/issues/519 --- wrapperModules/f/fish/module.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wrapperModules/f/fish/module.nix b/wrapperModules/f/fish/module.nix index 290d6a0e..b24dbe05 100644 --- a/wrapperModules/f/fish/module.nix +++ b/wrapperModules/f/fish/module.nix @@ -457,8 +457,7 @@ in (foldl' ( acc: elem: acc + " " + (mkAbbrArg elem abbr) ) "abbr --add ${abbr.word} ${mkCursorArg abbr}" abbrArgs) - + " " - + "\"${abbr.expansion}\""; + + optionalString (abbr.function == null) " \"${abbr.expansion}\""; abbrs = concatStringsSep "\n" (map mkAbbrStr (attrValues cfg.abbreviations)); aliases = concatStringsSep "\n" (