mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 15:09:34 +00:00
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:
@@ -11,7 +11,7 @@ opt.cursorline = true -- 高亮当前行
|
|||||||
opt.signcolumn = "yes" -- 始终显示标记列(避免每次出现符号时布局跳动)
|
opt.signcolumn = "yes" -- 始终显示标记列(避免每次出现符号时布局跳动)
|
||||||
opt.showmode = false -- 不显示模式,由状态栏插件替代
|
opt.showmode = false -- 不显示模式,由状态栏插件替代
|
||||||
opt.laststatus = 3 -- 全局状态栏
|
opt.laststatus = 3 -- 全局状态栏
|
||||||
opt.cmdheight = 0 -- 命令行高度(noice.nvim 接管,设为 0 消除闪烁)
|
opt.cmdheight = 1 -- 命令行高度
|
||||||
opt.scrolloff = 10 -- 光标上下保留的行数
|
opt.scrolloff = 10 -- 光标上下保留的行数
|
||||||
opt.sidescrolloff = 10 -- 光标左右保留的列数
|
opt.sidescrolloff = 10 -- 光标左右保留的列数
|
||||||
opt.wrap = false -- 不自动换行
|
opt.wrap = false -- 不自动换行
|
||||||
|
|||||||
@@ -241,12 +241,9 @@ return {
|
|||||||
signature = { enabled = false }, -- blink.cmp 处理签名
|
signature = { enabled = false }, -- blink.cmp 处理签名
|
||||||
progress = { enabled = true, format_done = "" },
|
progress = { enabled = true, format_done = "" },
|
||||||
},
|
},
|
||||||
-- 禁用 vim 命令行的 treesitter 语法高亮(Neovim 0.12 的 vim grammar 移除了 "tab" 节点类型)
|
-- 禁用 noice 的 cmdline 接管,使用原生命令行,避免浮窗闪烁
|
||||||
cmdline = {
|
cmdline = { enabled = false },
|
||||||
format = {
|
messages = { enabled = false },
|
||||||
cmdline = { pattern = "^:", icon = "" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
routes = {
|
routes = {
|
||||||
{
|
{
|
||||||
-- 屏蔽 treesitter query 兼容性警告(msg_show 和 notify 两种来源)
|
-- 屏蔽 treesitter query 兼容性警告(msg_show 和 notify 两种来源)
|
||||||
|
|||||||
Reference in New Issue
Block a user