From dcfef43b07aa25bb036338f3f494d5fb799365d8 Mon Sep 17 00:00:00 2001 From: newbieQQ Date: Thu, 11 Jun 2026 16:40:19 +0800 Subject: [PATCH] refactor: Reasonix terminal size matches nvimtree (30cols vertical, 10rows horizontal) --- lua/keymap.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/keymap.lua b/lua/keymap.lua index 3c2ed23..9fb0071 100644 --- a/lua/keymap.lua +++ b/lua/keymap.lua @@ -45,6 +45,8 @@ do local term = require('toggleterm.terminal').Terminal:new({ direction = wide and 'horizontal' or 'vertical', cmd = cmd, + -- 横屏→高度 10 行;竖屏→宽度 ≈ nvimtree(30 列) + size = wide and 10 or math.floor(ui.width * 0.3), }) term:toggle() end