File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ local Extensions = require("harpoon.extensions")
9
9
--- @field ui_fallback_width ? number used if we can ' t get the current window
10
10
--- @field ui_width_ratio ? number this is the ratio of the editor window to use
11
11
--- @field ui_max_width ? number this is the max width the window can be
12
+ --- @field height_in_lines ? number this is the max height in lines that the window can be
12
13
13
14
--- @return HarpoonToggleOptions
14
15
local function toggle_config (config )
@@ -94,7 +95,7 @@ function HarpoonUI:_create_window(toggle_opts)
94
95
width = toggle_opts .ui_max_width
95
96
end
96
97
97
- local height = 8
98
+ local height = toggle_opts . height_in_lines or 8 -- 8 lines is default height
98
99
local bufnr = vim .api .nvim_create_buf (false , true )
99
100
local win_id = vim .api .nvim_open_win (bufnr , true , {
100
101
relative = " editor" ,
You can’t perform that action at this time.
0 commit comments