filetree/nvimtree: fix default systemOpen on darwin

This commit is contained in:
Frothy 2024-02-11 09:28:04 -05:00
parent 4e83912a54
commit 6f47dbd11a

View file

@ -191,7 +191,12 @@ in {
};
cmd = mkOption {
default = "${pkgs.xdg-utils}/bin/xdg-open";
default =
if pkgs.stdenv.isDarwin
then "open"
else if pkgs.stdenv.isLinux
then "${pkgs.xdg-utils}/bin/xdg-open"
else throw "NvimTree: No default system open command for this platform, please set `vim.filetree.nvimTree.systemOpen.cmd`";
description = "The open command itself";
type = types.str;
};