fix: remove custom size, use toggleterm defaults

This commit is contained in:
QQ 2026-06-11 19:55:09 +08:00
parent 2611de78f2
commit 8981eebd1a
2 changed files with 1 additions and 2 deletions

View File

@ -47,7 +47,7 @@ vim.keymap.set('n', '<leader>gg', function() Q.open('lazygit') end)
## 特性 ## 特性
- **持久化** — toggle 显隐,终端状态保留 - **持久化** — toggle 显隐,终端状态保留
- **自适应** — 横屏右侧 45%,竖屏下方 40% - **自适应** — 横屏右侧分屏竖屏下方分屏toggleterm 默认尺寸)
- **轻量** — 仅依赖 toggleterm.nvim无其他依赖 - **轻量** — 仅依赖 toggleterm.nvim无其他依赖
## TODO ## TODO

View File

@ -24,7 +24,6 @@ function M.open(cmd)
terms[name] = require('toggleterm.terminal').Terminal:new({ terms[name] = require('toggleterm.terminal').Terminal:new({
direction = tall and 'horizontal' or 'vertical', direction = tall and 'horizontal' or 'vertical',
cmd = cmd, cmd = cmd,
size = tall and math.floor(ui.height * 0.4) or math.floor(ui.width * 0.45),
}) })
end end