diff --git a/README.md b/README.md index 677bc3d..5fc9b09 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,18 @@ For Windows users, change the build command to the following: > If your neovim doesn't use LuaJIT, then change `build` to `make lua51`. By default running make will install luajit. > For ARM-based setup, make sure to also install cargo as we will have to build the tiktoken_core from source. +> [!NOTE] +> +> Recommended **Neovim** options: +> +> ```lua +> -- views can only be fully collapsed with the global statusline +> vim.opt.laststatus = 3 +> -- Default splitting will cause your main splits to jump when opening an edgebar. +> -- To prevent this, set `splitkeep` to either `screen` or `topline`. +> vim.opt.splitkeep = "screen" +> ``` + > [!NOTE] > > `render-markdown.nvim` is an optional dependency that is used to render the markdown content of the chat history. Make sure to also include `Avante` as a filetype diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 7a3ce46..18c1d93 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -315,6 +315,8 @@ local base_win_options = { -- winhighlight = "Normal:NormalFloat,Border:FloatBorder,VertSplit:NormalFloat,WinSeparator:NormalFloat,CursorLine:NormalFloat", fillchars = "eob: ", winhighlight = "CursorLine:Normal,CursorColumn:Normal", + winbar = "", + statusline = "", } local function get_win_options()