-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm not pasting anything, I just input Chinese characters in the chat box, but constantly get this error interrupting me
To reproduce
Expected behavior
Not showing the error when I input Chinese.
Installation method
Use lazy.nvim:
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
opts = {
---@alias Mode "agentic" | "legacy"
mode = "agentic",
---@alias Provider "claude" | "openai" | "azure" | "gemini" | "cohere" | "copilot" | <acp_provider>
provider = "opencode",
providers = {
copilot = {
model = "claude-sonnet-4.5",
},
},
acp_providers = {
["opencode"] = {
command = "opencode",
args = { "acp" },
},
["qwen-code"] = {
command = "qwen",
args = { "--experimental-acp" },
},
["gemini-cli"] = {
command = "gemini",
args = { "--experimental-acp" },
},
},
input = {
provider = "native"
},
behaviour = {
auto_suggestions = false,
auto_set_highlight_group = true,
auto_set_keymaps = true,
auto_apply_diff_after_generation = false,
support_paste_from_clipboard = false,
minimize_diff = true, -- Whether to remove unchanged lines when applying a code block
},
mappings = {
diff = {
ours = "co",
theirs = "ct",
all_theirs = "ca",
both = "cb",
cursor = "cc",
next = "c]",
prev = "c[",
},
jump = {
next = "]]",
prev = "[[",
},
submit = {
normal = "<CR>",
insert = "<C-g>",
},
sidebar = {
apply_all = "A",
apply_cursor = "a",
switch_windows = "<Tab>",
reverse_switch_windows = "<S-Tab>",
},
toggle = {
suggestion = "<leader>aS",
},
stop = "<leader>as",
},
hints = { enabled = true },
windows = {
---@type "right" | "left" | "top" | "bottom"
position = "right",
wrap = true,
width = 36, -- % based on available width
sidebar_header = {
enabled = true, -- true, false to enable/disable the header
---@type "left" | "center" | "right"
align = "left",
rounded = true,
},
input = {
prefix = "> ",
height = 8,
},
edit = {
border = "rounded",
start_insert = true, -- Start insert mode when opening the edit window
},
ask = {
floating = false, -- Open the 'AvanteAsk' prompt in a floating window
start_insert = true, -- Start insert mode when opening the ask window
border = "rounded",
---@type "ours" | "theirs"
focus_on_apply = "ours", -- which diff to focus after applying
},
},
diff = {
autojump = true,
list_opener = "copen",
--- Override the 'timeoutlen' setting while hovering over a diff (see :help timeoutlen).
--- Helps to avoid entering operator-pending mode with diff mappings starting with `c`.
--- Disable by setting to -1.
override_timeoutlen = 500,
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
}Environment
❯ nvim -v
NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1765228720
Run "nvim -V1 -v" for more info
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
-- add any other plugins here
},
})Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working