Next generation terminal for neovim
Terminal will be reused by tasks
local terminal = Terminal:new()
local cmake = Job:new({
cmd = "cmake",
on_exit = function(code)
-- job complete
end
})
cmake:watch_stdout(function(data)
terminal:write(data)
end)
cmake:wait()
-- terminal can be reused