Skip to content

Commit

Permalink
revert: remove invalid configuration (yetone#447)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
  • Loading branch information
aarnphm authored Sep 1, 2024
1 parent 7912070 commit c33ab80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lua/avante/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ M.defaults = {
wrap = true, -- similar to vim.o.wrap
width = 30, -- default % based on available width in vertical layout
height = 30, -- default % based on available height in horizontal layout
direction = "right", -- "left" | "right"
sidebar_header = {
align = "center", -- left, center, right for title
rounded = true,
Expand Down
2 changes: 1 addition & 1 deletion lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ function Sidebar:create_input()
if self:get_layout() == "vertical" then
return "bottom"
end
return Config.windows.direction
return "right"
end

local get_size = function()
Expand Down

0 comments on commit c33ab80

Please sign in to comment.