fix(nvim): disable noice cmdline/messages to stop popup flickering

noice's cmdline floating window was causing visible flicker when typing
:wq and other commands. Disable noice cmdline+messages entirely and
restore cmdheight=1 so native cmdline handles input stably.
noice still handles LSP and notifications via snacks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-20 18:03:15 +08:00
parent 26c6173a9c
commit 017c8cee8f
2 changed files with 4 additions and 7 deletions

View File

@@ -241,12 +241,9 @@ return {
signature = { enabled = false }, -- blink.cmp 处理签名
progress = { enabled = true, format_done = "" },
},
-- 禁用 vim 命令行的 treesitter 语法高亮Neovim 0.12 的 vim grammar 移除了 "tab" 节点类型)
cmdline = {
format = {
cmdline = { pattern = "^:", icon = "" },
},
},
-- 禁用 noice 的 cmdline 接管,使用原生命令行,避免浮窗闪烁
cmdline = { enabled = false },
messages = { enabled = false },
routes = {
{
-- 屏蔽 treesitter query 兼容性警告msg_show 和 notify 两种来源)