refactor: simplify

This commit is contained in:
2026-09-03 20:28:34 +02:00
parent 71434f947b
commit 82fe66dfb0
8 changed files with 147 additions and 206 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
local M = {}
--- Opens a TUI application in a simple centered floating window.
--- Opens a command in a simple centered floating window.
function M.open_terminal_app(cmd)
local buf = vim.api.nvim_create_buf(false, true)
local w, h = math.floor(vim.o.columns * 0.95), math.floor(vim.o.lines * 0.95)
local w = math.floor(vim.o.columns * 0.95)
local h = math.floor(vim.o.lines * 0.95)
local win = vim.api.nvim_open_win(buf, true, {
relative = "editor",