File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4545
4646--- @param url string
4747local function open_dev_tools (url )
48- local open_command = utils .open_command ()
48+ local open_command , args = utils .open_command ()
4949 if not open_command then
5050 return ui .notify (
5151 " Sorry your Operating System is not supported, please raise an issue" ,
5252 ui .ERROR
5353 )
5454 end
55-
55+ table.insert ( args , url )
5656 Job :new ({
5757 command = open_command ,
58- args = { url } ,
58+ args = args ,
5959 detached = true ,
6060 }):start ()
6161end
Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ function M.get_hl(name, attribute)
9898end
9999
100100function M .open_command ()
101- if path .is_mac then return " open" end
102- if path .is_linux then return " xdg-open" end
103- if path .is_windows then return " explorer " end
101+ if path .is_mac then return " open" , {} end
102+ if path .is_linux then return " xdg-open" , {} end
103+ if path .is_windows then return " cmd.exe " , { " /c " , " start " } end
104104 return nil , nil
105105end
106106
You can’t perform that action at this time.
0 commit comments