refactor: Reasonix terminal size matches nvimtree (30cols vertical, 10rows horizontal)

This commit is contained in:
QQ 2026-06-11 16:40:19 +08:00
parent 3253a2b20f
commit dcfef43b07
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ do
local term = require('toggleterm.terminal').Terminal:new({
direction = wide and 'horizontal' or 'vertical',
cmd = cmd,
-- 横屏→高度 10 行;竖屏→宽度 ≈ nvimtree30 列)
size = wide and 10 or math.floor(ui.width * 0.3),
})
term:toggle()
end