Skip to content

Commit 39a5d69

Browse files
Merge pull request #285 from phrmendes/master
2 parents f29c85a + 22761df commit 39a5d69

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

autoload/db_ui/notifications.vim

+8-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ 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-
return luaeval('vim.notify(_A[1], _A[2], _A[3])', [a:msg, type, opts])
98+
99+
let log_levels = {
100+
\ 'info': luaeval("vim.log.levels.INFO"),
101+
\ 'error': luaeval("vim.log.levels.ERROR"),
102+
\ 'warning': luaeval("vim.log.levels.WARN")
103+
\ }
104+
105+
return luaeval('vim.notify(_A[1], _A[2], _A[3])', [a:msg, log_levels[type], opts])
99106
endfunction
100107

101108
function! s:notification_nvim(msg, opts) abort

0 commit comments

Comments
 (0)