nixos/fzf: fix evaluation if ohMyZsh is enabled

This commit is contained in:
Sandro Jäckel 2023-05-08 21:01:05 +02:00
parent b6bad25cbb
commit edf57fef9b
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -26,7 +26,7 @@ in
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
'');
programs.zsh.ohMyZsh.plugins = optional (cfg.keybindings || cfg.fuzzyCompletion) [ "fzf" ];
programs.zsh.ohMyZsh.plugins = lib.mkIf (cfg.keybindings || cfg.fuzzyCompletion) [ "fzf" ];
};
meta.maintainers = with maintainers; [ laalsaas ];
}