Skip to content

Commit 3ff345c

Browse files
Frederick888ldelossa
authored andcommitted
feat: GHViewWeb uses "open" under macOS (reroll)
1 parent f1fa17b commit 3ff345c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/litee/gh/pr/init.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ local M = {}
2222
M.autocmds = {}
2323

2424
local function open_nodes_url(node)
25-
vim.fn.system({'xdg-open', node.url})
25+
if vim.fn.has('mac') == 1 then
26+
vim.fn.system({ 'open', node.url })
27+
else
28+
vim.fn.system({ 'xdg-open', node.url })
29+
end
2630
end
2731

2832
local function ui_req_ctx()

0 commit comments

Comments
 (0)