fix(utils): fixed bottom split and added sizing for splits
This commit is contained in:
1 parent
e6c3353b51
commit
14b302151b
4 files changed
+52
-45
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user