yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
5.18k stars 171 forks source link

fix: use `vim.o.lines`/`vim.o.columns` when calculating sidebar height/width #570

Closed b0o closed 4 days ago

b0o commented 5 days ago

Behavior changed in #420 making the width/height calculated based on the code window, while previously it was based on the overall Neovim editor size. This caused windows to be too small when the user had multiple windows open.

Example behavior, when configured with windows.width = 30:

Before fix:

2024-09-12_00-31-35_region

After fix:

2024-09-12_00-38-02_region