We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 969762c commit a0b0dfeCopy full SHA for a0b0dfe
1 file changed
lua/rovo-dev/terminal.lua
@@ -5,9 +5,9 @@ local M = {}
5
local function calc_width(config)
6
local w = config.terminal.width
7
if type(w) == 'number' and w > 0 and w < 1 then
8
- return math.max(20, math.floor(vim.o.columns * w))
+ return math.min(120, math.floor(vim.o.columns * w))
9
end
10
- return math.max(20, w or 40)
+ return math.min(120, w or 40)
11
12
13
local function place_split(side)
0 commit comments