Skip to content

Commit

Permalink
filetree/nvimtree: fix default systemOpen on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
FrothyMarrow committed Feb 11, 2024
1 parent 4e83912 commit 1442b23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/filetree/nvimtree/nvimtree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ in {
};

cmd = mkOption {
default = "${pkgs.xdg-utils}/bin/xdg-open";
default =
if pkgs.stdenv.isDarwin
then "open"
else "${pkgs.xdg-utils}/bin/xdg-open";
description = "The open command itself";
type = types.str;
};
Expand Down

0 comments on commit 1442b23

Please sign in to comment.