chore(opts): respect user opts (#255)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
parent
eaf37668b1
commit
3369f732c5
18
README.md
18
README.md
@ -40,6 +40,12 @@ Install `avante.nvim` using [lazy.nvim](https://github.com/folke/lazy.nvim):
|
||||
},
|
||||
ft = { "markdown", "Avante" },
|
||||
},
|
||||
--- For image pasting support
|
||||
{
|
||||
"HakonHarnes/img-clip.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
}
|
||||
},
|
||||
}
|
||||
```
|
||||
@ -64,18 +70,6 @@ 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.
|
||||
> Avante.nvim will now requires cargo to build 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
|
||||
|
@ -225,9 +225,6 @@ function M.setup(opts)
|
||||
vim.cmd([[quit]])
|
||||
end
|
||||
|
||||
-- use a global statusline
|
||||
vim.opt.laststatus = 3
|
||||
|
||||
---PERF: we can still allow running require("avante").setup() multiple times to override config if users wish to
|
||||
---but most of the other functionality will only be called once from lazy.nvim
|
||||
Config.setup(opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user