diff --git a/home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua b/home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua index 5a9d8711..2a5c1b57 100644 --- a/home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua +++ b/home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua @@ -28,6 +28,14 @@ return { model = "deepseek-chat", }, }, + -- WARNING: Since auto-suggestions are a high-frequency operation and therefore expensive, + -- currently designating it as `copilot` provider is dangerous because: https://github.com/yetone/avante.nvim/issues/1048 + -- Of course, you can reduce the request frequency by increasing `suggestion.debounce`. + auto_suggestions_provider = "deepseek", + suggestion = { + debounce = 750, -- wait for x ms before suggestion + throttle = 1200, -- wait for at least x ms before the next suggestion + }, }, -- if you want to build from source then do `make BUILD_FROM_SOURCE=true` build = "make",