-
Hi :) I try to execute subprocess like neovim in yazi. return {
entry = function()
local paths = selected_url()
if not paths then
info('Diff Error : select two files')
return
end
local _permit = ya.hide()
local status, err = Command("nvim"):arg("-d")
:arg(paths[1]):arg(paths[2])
:spawn():wait()
-- if error then
-- return info("Failed to run diff, error: " .. err)
-- end
_permit:drop()
end,
}
After executing this plugin, After I force to terminate the nvim.exe process, the yazi screen is restored |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Neovim is an interactive app, so you'll need to allow it to inherit your tty resource, try adding: |
Beta Was this translation helpful? Give feedback.
Neovim is an interactive app, so you'll need to allow it to inherit your tty resource, try adding:
:stdin(Command.INHERIT):stdout(Command.INHERIT):stderr(Command.INHERIT)
to yourCommand