From 69dccb20804114fd52df16a7ee050f39c1df60c0 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 10 Jul 2023 01:36:38 +0100 Subject: [PATCH] refactor(nvim): filter out noise in notifications --- home/apps/nvim/lua/plugins/editor.lua | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/home/apps/nvim/lua/plugins/editor.lua b/home/apps/nvim/lua/plugins/editor.lua index 431266c..52faea0 100644 --- a/home/apps/nvim/lua/plugins/editor.lua +++ b/home/apps/nvim/lua/plugins/editor.lua @@ -7,11 +7,19 @@ return { }, { "folke/noice.nvim", - opts = { - presets = { - lsp_doc_border = true, - }, - }, + opts = function(_, opts) + table.insert(opts.routes, { + filter = { + any = { + { event = "notify", find = "No information available" }, + { event = "msg_show", find = "fewer lines" }, + { event = "msg_show", find = "more lines" }, + }, + }, + opts = { skip = true }, + }) + opts.presets.lsp_doc_border = false + end, }, { "folke/persistence.nvim",