fix(utils): fixed bottom split and added sizing for splits

This commit is contained in:
DarthMooMancer
2025-05-20 09:27:04 -04:00
parent e6c3353b51
commit 14b302151b
4 changed files with 52 additions and 45 deletions
+3 -3
View File
@@ -91,16 +91,16 @@ function M.terminal(cmd)
end
end
if M.opts.win.type == "horizontal" then
if M.opts.anchor == "bottom" then
if M.opts.win.anchor == "bottom" then
vim.cmd("set splitbelow")
end
end
if M.opts.win.type == "vertical" then
vim.cmd("vsplit")
vim.cmd(M.opts.win.size .. " vsplit")
end
if M.opts.win.type == "horizontal" then
vim.cmd("split")
vim.cmd(M.opts.win.size .. " split")
end
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_win_set_buf(0, buf)