refactor: temp

This commit is contained in:
Job
2026-06-24 20:34:11 +02:00
parent e7e37c8dc8
commit 0b90092ff8
5 changed files with 321 additions and 1134 deletions
+13
View File
@@ -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