From f9025a368ddc5cf11d5e880658ceac4ecf7afd75 Mon Sep 17 00:00:00 2001 From: luozhiya Date: Sun, 19 May 2024 00:20:12 +0800 Subject: [PATCH] Preferred using Neovim 0.10's built-in function --- lua/fittencode/concurrency/process.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/fittencode/concurrency/process.lua b/lua/fittencode/concurrency/process.lua index 56454d1..ec05c28 100644 --- a/lua/fittencode/concurrency/process.lua +++ b/lua/fittencode/concurrency/process.lua @@ -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