Skip to content

Commit

Permalink
feat: add configurable input window height for vertical layout (yeton…
Browse files Browse the repository at this point in the history
…e#773)

Co-authored-by: amojury <wujiajun880@gmail.com>
  • Loading branch information
amojury and junzcc authored Nov 3, 2024
1 parent 7df1fe6 commit 58e0165
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_
},
input = {
prefix = "> ",
height = 8, -- Height of the input window in vertical layout
},
edit = {
border = "rounded",
Expand Down
1 change: 1 addition & 0 deletions lua/avante/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Respect and use existing conventions, libraries, etc that are already present in
},
input = {
prefix = "> ",
height = 8, -- Height of the input window in vertical layout
},
edit = {
border = "rounded",
Expand Down
2 changes: 1 addition & 1 deletion lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ function Sidebar:create_input(opts)

local get_size = function()
if self:get_layout() == "vertical" then return {
height = 8,
height = Config.windows.input.height,
} end

local selected_code_size = self:get_selected_code_size()
Expand Down

0 comments on commit 58e0165

Please sign in to comment.