From e4487aa27f3d9dbcbcc628956d9d6d5b26df5d1c Mon Sep 17 00:00:00 2001 From: captain Date: Fri, 27 Feb 2026 19:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E9=83=A8=E5=88=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/lazy/plugins/cmdline.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lua/lazy/plugins/cmdline.lua b/lua/lazy/plugins/cmdline.lua index 952ab90..d1bb5a2 100644 --- a/lua/lazy/plugins/cmdline.lua +++ b/lua/lazy/plugins/cmdline.lua @@ -19,17 +19,26 @@ return { ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp }, }, - -- you can enable a preset for easier configuration + -- 启用一个预设以简化配置 presets = { - bottom_search = true, -- use a classic bottom cmdline for search - command_palette = true, -- position the cmdline and popupmenu together + bottom_search = true, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split - inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = false, -- add a border to hover docs and signature help + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = false, -- add a border to hover docs and signature help }, -- 在这里添加或修改 routes 配置 routes = { { + -- 过滤翻译插件的成功提示 + filter = { + event = "msg_show", + find = "Translate success", + }, + opts = { skip = true }, + }, + { + -- 过滤打开rust文件不影响使用的错误提示 filter = { event = "msg_show", kind = "emsg",