Skip to content

Commit

Permalink
feat(actions): enable wslview (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwtkman committed Nov 18, 2023
1 parent cafacd0 commit ebb7a73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/gitlinker/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ local function system(url)
job = vim.fn.jobstart({ "open", url })
elseif vim.fn.has("win32") > 0 or vim.fn.has("win64") > 0 then
job = vim.fn.jobstart({ "cmd", "/C", "start", url })
elseif vim.fn.executable("wslview") > 0 then
job = vim.fn.jobstart({ "wslview", url })
else
job = vim.fn.jobstart({ "xdg-open", url })
end
Expand Down

0 comments on commit ebb7a73

Please sign in to comment.