avante.nvim
avante.nvim copied to clipboard
bug: blink.cmp buffer words completion opens the `Ask` buffer in sidebar as a new file.
Describe the bug
I believe this bug is relatively new. Probably introduced by changes within 3 days.
To reproduce
-
complete some buffer words, press enter
-
new file opened
Expected behavior
No response
Installation method
Use lazy.nvim:
{
"yetone/avante.nvim",
event = "VeryLazy",
version = false, -- set this if you want to always pull the latest change
opts = {
provider = "gemini",
-- provider = "openrouter",
behaviour = {
enable_cursor_planning_mode = true, -- enable cursor planning mode!
},
gemini = {
-- @see https://ai.google.dev/gemini-api/docs/models/gemini
model = "gemini-2.0-flash-001",
temperature = 0,
max_tokens = 4096,
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- required for Windows users
use_absolute_path = true,
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
},
Environment
NVIM v0.10.4 Build type: Release LuaJIT 2.1.1713773202
| key | val |
|---|---|
| kernel-name | Darwin |
| kernel-release | 24.3.0 |
| kernel-version | Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 |
| machine | arm64 |
| operating-system | Darwin |
Repro
Could be an issue of blink.cmp though, I can't tell.