Skip to content

Commit

Permalink
Preferred using Neovim 0.10's built-in function
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed May 18, 2024
1 parent 2f015f8 commit f9025a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/fittencode/concurrency/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ M.open = function(uri)
if uri == nil then
return
end
-- Perfer using nvim-0.10's built-in function
if fn.has('nvim-0.10') == 1 then
vim.ui.open(uri)
return
end
local cmd = nil
local args = {}
if Base.is_windows() then
Expand Down

0 comments on commit f9025a3

Please sign in to comment.