Skip to content

Commit a0b0dfe

Browse files
authored
Set max window width to 120 columns (#17)
120 columns is the maximum width that the Rovo Dev chat box can expand to. After that, there is just empty space.
1 parent 969762c commit a0b0dfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/rovo-dev/terminal.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ local M = {}
55
local function calc_width(config)
66
local w = config.terminal.width
77
if type(w) == 'number' and w > 0 and w < 1 then
8-
return math.max(20, math.floor(vim.o.columns * w))
8+
return math.min(120, math.floor(vim.o.columns * w))
99
end
10-
return math.max(20, w or 40)
10+
return math.min(120, w or 40)
1111
end
1212

1313
local function place_split(side)

0 commit comments

Comments
 (0)