make info notifications mini

This commit is contained in:
LordMZTE 2023-05-27 23:05:21 +02:00
parent cc0ad9602d
commit df0e6c1ffb
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -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))}