Skip to content

Commit 0fec59e

Browse files
Reuse notification window for info messages
1 parent 7f89265 commit 0fec59e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/db_ui/notifications.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ function! s:notification_nvim_notify(msg, opts) abort
9595
if get(a:opts, 'delay')
9696
let opts.timeout = { 'timeout': a:opts.delay }
9797
endif
98+
if (type ==? 'info')
99+
let opts.id = 'vim-dadbod-ui-info'
100+
let opts.replace = 'vim-dadbod-ui-info'
101+
endif
98102

99103
let log_levels = {
100104
\ 'info': luaeval("vim.log.levels.INFO"),

0 commit comments

Comments
 (0)