From 43c5544a2988b36dd6830036a7b10f03aa7dadbd Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 23 Aug 2024 23:52:13 +0800 Subject: [PATCH] fix: splitting window size (#178) --- lua/avante/sidebar.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 03a4693..8fab4e9 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1267,7 +1267,6 @@ Available commands: col = 1, }, size = { - height = 2, width = win_width - 2, -- Subtract the width of the input box borders }, }, { @@ -1345,7 +1344,7 @@ function Sidebar:render() }, nil, { - height = math.max(0, sidebar_height - selected_code_size - 8), + height = math.max(0, sidebar_height - selected_code_size - 9), } ) @@ -1376,9 +1375,6 @@ function Sidebar:render() buf_options = buf_options, win_options = get_win_options(), position = "bottom", - size = { - height = 4, - }, }) self.input_container:mount()