1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-25 09:09:48 +01:00

Merge pull request from FrothyMarrow/fix-filetree-open

filetree/nvimtree: fix default systemOpen on darwin
This commit is contained in:
NotAShelf 2024-02-12 00:19:14 +03:00 committed by GitHub
commit 44ec36ec3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
};