refactor: temp
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
local M = {}
|
||||
|
||||
--- Opens a TUI application in a new scratch buffer and deletes the buffer on exit.
|
||||
function M.open_terminal_app(cmd)
|
||||
vim.cmd("enew")
|
||||
vim.fn.termopen(cmd, {
|
||||
on_exit = function()
|
||||
vim.cmd("bdelete!")
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user