chore(docs): update correct formatting for dropdown (#817)
This commit is contained in:
parent
c516883b99
commit
b872ac9c12
20
README.md
20
README.md
@ -130,7 +130,7 @@ add({
|
|||||||
'MunifTanjim/nui.nvim',
|
'MunifTanjim/nui.nvim',
|
||||||
'echasnovski/mini.icons'
|
'echasnovski/mini.icons'
|
||||||
},
|
},
|
||||||
hooks = { post_checkout = function() vim.cmd('AvanteBuild source=false') end }
|
hooks = { post_checkout = function() vim.cmd('make') end }
|
||||||
})
|
})
|
||||||
--- optional
|
--- optional
|
||||||
add({ source = 'zbirenbaum/copilot.lua' })
|
add({ source = 'zbirenbaum/copilot.lua' })
|
||||||
@ -169,10 +169,7 @@ require('avante').setup ({
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!IMPORTANT]
|
**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)
|
||||||
>
|
|
||||||
> 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)
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@ -189,19 +186,6 @@ require('avante').setup ({
|
|||||||
> vim.opt.laststatus = 3
|
> 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]
|
> [!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.
|
> 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.
|
||||||
|
@ -181,7 +181,7 @@ M.stream = function(opts)
|
|||||||
if Config.options[Config.provider] == nil and Provider.parse_stream_data ~= nil then
|
if Config.options[Config.provider] == nil and Provider.parse_stream_data ~= nil then
|
||||||
if Provider.parse_response ~= nil then
|
if Provider.parse_response ~= nil then
|
||||||
Utils.warn(
|
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 }
|
{ once = true }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user