From a60671a983dd4fa2b71ff8e61e0199ff94fb68ee Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 18 Apr 2025 10:24:19 +0800 Subject: [PATCH] feat: avante.nvim - auto_suggestion --- home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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",