Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Mar 10, 2024
1 parent 4e4398c commit c8f4f42
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lua/lsplinks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@ function M.open(uri)
end
else
if vim.ui.open then
vim.ui.open(uri)
vim.ui.open(uri)
else
-- for nvim earlier than 0.10
local opener
if vim.fn.has("macunix") == 1 then
opener = "open"
elseif vim.fn.has("linux") == 1 then
opener = "xdg-open"
elseif vim.fn.has("win64") == 1 or vim.fn.has("win32") == 1 then
opener = "start"
end
local openCommand = string.format("%s '%s' >/dev/null 2>&1", opener, uri)
vim.fn.system(openCommand)
-- for nvim earlier than 0.10
local opener
if vim.fn.has("macunix") == 1 then
opener = "open"
elseif vim.fn.has("linux") == 1 then
opener = "xdg-open"
elseif vim.fn.has("win64") == 1 or vim.fn.has("win32") == 1 then
opener = "start"
end
local openCommand = string.format("%s '%s' >/dev/null 2>&1", opener, uri)
vim.fn.system(openCommand)
end
end
return true
Expand Down

0 comments on commit c8f4f42

Please sign in to comment.