refactor: simplify git and terminal

This commit is contained in:
Job Jobse
2026-09-23 20:11:23 +02:00
parent 84182badd8
commit 47268fc49f
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -10,10 +10,9 @@ local function open(cmd)
height = h,
row = math.floor((lines - h) / 2),
col = math.floor((vim.o.columns - w) / 2),
border = 'rounded',
})
vim.fn.termopen(cmd, { on_exit = function() pcall(vim.api.nvim_win_close, win, true) end })
vim.fn.jobstart(cmd, { term = true, on_exit = function() pcall(vim.api.nvim_win_close, win, true) end })
end
return { open = open }