Skip to content

Commit 87e13b0

Browse files
committed
fix: small scrolloff in avante input container
1 parent f7803cd commit 87e13b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/avante/sidebar.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,11 @@ function Sidebar:create_input_container()
28922892
swapfile = false,
28932893
buftype = "nofile",
28942894
},
2895-
win_options = vim.tbl_deep_extend("force", base_win_options, { signcolumn = "yes", wrap = Config.windows.wrap }),
2895+
win_options = vim.tbl_deep_extend(
2896+
"force",
2897+
base_win_options,
2898+
{ signcolumn = "yes", wrap = Config.windows.wrap, scrolloff = 1 }
2899+
),
28962900
position = get_position(),
28972901
size = get_size(),
28982902
})

0 commit comments

Comments
 (0)