chore(docs): update correct formatting for dropdown (#817)

This commit is contained in:
Aaron Pham 2024-11-07 01:15:37 -05:00 committed by GitHub
parent c516883b99
commit b872ac9c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 19 deletions

View File

@ -130,7 +130,7 @@ add({
'MunifTanjim/nui.nvim',
'echasnovski/mini.icons'
},
hooks = { post_checkout = function() vim.cmd('AvanteBuild source=false') end }
hooks = { post_checkout = function() vim.cmd('make') end }
})
--- optional
add({ source = 'zbirenbaum/copilot.lua' })
@ -169,10 +169,7 @@ require('avante').setup ({
})
```
> [!IMPORTANT]
>
> For `avante.tokenizers` and templates to work, make sure to call `require('avante_lib').load()` somewhere when entering the editor.
> We will leave the users to decide where it fits to do this, as this varies among configurations. (But we do recommend running this after where you set your colorscheme)
**NOTE**: For <code>avante.tokenizers</code> and templates to work, make sure to call <code>require('avante_lib').load()</code> somewhere when entering the editor. We will leave the users to decide where it fits to do this, as this varies among configurations. (But we do recommend running this after where you set your colorscheme)
</details>
@ -189,19 +186,6 @@ require('avante').setup ({
> vim.opt.laststatus = 3
> ```
> [!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
> to its setup (e.g. via Lazy):
>
> ```lua
> {
> "MeanderingProgrammer/render-markdown.nvim",
> opts = { file_types = { "markdown", "Avante" } },
> ft = { "markdown", "Avante" },
> }
> ```
> [!TIP]
>
> Any rendering plugins that support markdown should work with Avante as long as you add the supported filetype `Avante`. See https://github.com/yetone/avante.nvim/issues/175 and [this comment](https://github.com/yetone/avante.nvim/issues/175#issuecomment-2313749363) for more information.

View File

@ -181,7 +181,7 @@ M.stream = function(opts)
if Config.options[Config.provider] == nil and Provider.parse_stream_data ~= nil then
if Provider.parse_response ~= nil then
Utils.warn(
"parse_stream_data and parse_response_data are mutually exclusive, and thus parse_response_data will be ignored. Make sure that you handle the incoming data correctly.",
"parse_stream_data and parse_response are mutually exclusive, and thus parse_response will be ignored. Make sure that you handle the incoming data correctly.",
{ once = true }
)
end