mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Use vim.ui.open if exists
This commit is contained in:
parent
051212f2b1
commit
e09e27b7f0
1 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue