From 0fec59e3e1e619e302198cd491b7d27f8d398b7c Mon Sep 17 00:00:00 2001 From: Kristijan Husak Date: Thu, 12 Dec 2024 17:55:30 +0100 Subject: [PATCH] Reuse notification window for info messages --- autoload/db_ui/notifications.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/db_ui/notifications.vim b/autoload/db_ui/notifications.vim index 7f0335c..ca71ad6 100644 --- a/autoload/db_ui/notifications.vim +++ b/autoload/db_ui/notifications.vim @@ -95,6 +95,10 @@ function! s:notification_nvim_notify(msg, opts) abort if get(a:opts, 'delay') let opts.timeout = { 'timeout': a:opts.delay } endif + if (type ==? 'info') + let opts.id = 'vim-dadbod-ui-info' + let opts.replace = 'vim-dadbod-ui-info' + endif let log_levels = { \ 'info': luaeval("vim.log.levels.INFO"),