Skip to content

Commit 596a24b

Browse files
committed
feat(#2430): use vim.ui.open as default system_open, for neovim 0.10+
1 parent 275b001 commit 596a24b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: lua/nvim-tree/actions/node/system-open.lua

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ end
5151

5252
---@param node Node
5353
local function native(node)
54-
local path = node.link_to or node.absolute_path
54+
local _, err = vim.ui.open(node.link_to or node.absolute_path)
5555

56-
local _, err = vim.ui.open(path)
57-
58-
-- err only provided on opener executable not found; path not useful in that case
56+
-- err only provided on opener executable not found hence logging path is not useful
5957
if err then
6058
notify.warn(err)
6159
end

0 commit comments

Comments
 (0)