|
4 | 4 | --- @field filetype Filetype |
5 | 5 |
|
6 | 6 | --- @class Config |
7 | | ---- @field main { width: number }; |
8 | | ---- @field top Integration[]; |
9 | | ---- @field right { min_width: number; [number]: Integration[]}; |
10 | | ---- @field bottom Integration[]; |
11 | | ---- @field left { min_width: number; [number]: Integration[]}; |
| 7 | +--- @field main { width: number } |
| 8 | +--- @field top Integration[] |
| 9 | +--- @field right { min_width: number; [number]: Integration[]} |
| 10 | +--- @field bottom Integration[] |
| 11 | +--- @field left { min_width: number; [number]: Integration[]} |
12 | 12 |
|
13 | 13 | --- @class ConfigOptions |
14 | | ---- @field main? { width?: number }; |
15 | | ---- @field top? Integration[]; |
16 | | ---- @field right? { min_width?: number; [number]?: Integration[]}; |
17 | | ---- @field bottom? Integration[]; |
18 | | ---- @field left? { min_width?: number; [number]?: Integration[]}; |
| 14 | +--- @field main? { width?: number } |
| 15 | +--- @field top? Integration[] |
| 16 | +--- @field right? { min_width?: number; [number]: Integration[]} |
| 17 | +--- @field bottom? Integration[] |
| 18 | +--- @field left? { min_width?: number; [number]: Integration[]} |
19 | 19 |
|
20 | | ---- @type Config |
| 20 | +--- @type ConfigOptions |
21 | 21 | local opts = { |
22 | 22 | main = { width = 148 }, |
23 | 23 | top = {}, |
@@ -230,7 +230,7 @@ local function close(filetype) |
230 | 230 | end |
231 | 231 | end |
232 | 232 |
|
233 | | ----@param options? ConfigOptions |
| 233 | +---@param options? Config |
234 | 234 | local function setup(options) |
235 | 235 | -- Default splitting will cause your main splits to jump when opening an integration. |
236 | 236 | -- To prevent this, set `splitkeep` to either `screen` or `topline`. |
|
0 commit comments