From df0e6c1ffb601a19094d7a3ac6886495ccf05067 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 27 May 2023 23:05:21 +0200 Subject: [PATCH] make info notifications mini --- mzte-nv/conf/lua/pluginconf/p-noice.fnl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mzte-nv/conf/lua/pluginconf/p-noice.fnl b/mzte-nv/conf/lua/pluginconf/p-noice.fnl index 0abd13e..faef9d4 100644 --- a/mzte-nv/conf/lua/pluginconf/p-noice.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-noice.fnl @@ -5,10 +5,8 @@ :cmp.entry.get_documentation]) (fn show-mini? [notif] - (and notif.opts (or ;; DAP notifs - (= notif.opts.title :DAP) - ;; MZTE-NV notifications - notif.opts.mzte_nv_mini))) + (or ;; INFO level + (= notif.level :info) (and notif.opts notif.opts.mzte_nv_mini))) (noice.setup {:messages {:view :mini} :lsp {:override (collect [_ o (ipairs overrides)] (values o true))}