Use vim.ui.open if exists

This commit is contained in:
Uthman Mohamed 2024-03-19 17:39:32 -04:00
parent 051212f2b1
commit e09e27b7f0

View file

@ -72,6 +72,12 @@ return {
["O"] = {
command = function(state)
local filepath = state.tree:get_node().path
if vim.ui.open then
vim.ui.open(filepath)
return
end
local uname = vim.loop.os_uname()
local OS = uname.sysname
local is_mac = OS == "Darwin"