mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Use nvim-notify for showing messages
This commit is contained in:
@@ -11,7 +11,11 @@ function! buf_utils#GoToBuffer(count, direction) abort
|
||||
endif
|
||||
" Check the validity of buffer number.
|
||||
if index(s:GetBufNums(), a:count) == -1
|
||||
call utils#Log('Invalid bufnr: ' . a:count, 'error')
|
||||
" Using `lua vim.notify('invalid bufnr: ' .. a:count)` won't work, because
|
||||
" we are essentially mixing Lua and vim script. We need to make sure that
|
||||
" args inside vim.notify() are valid vim values. The conversion from vim
|
||||
" value to lua value will be done by Nvim. See also https://github.com/neovim/neovim/pull/11338.
|
||||
call v:lua.vim.notify('Invalid bufnr: ' . a:count, 'error', {'title': 'nvim-config'})
|
||||
return
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user