mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 14:55:59 +01:00
filetree/nvimtree: fix default systemOpen on darwin
This commit is contained in:
parent
4e83912a54
commit
6f47dbd11a
1 changed files with 6 additions and 1 deletions
|
@ -191,7 +191,12 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
cmd = mkOption {
|
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";
|
description = "The open command itself";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue