diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-05 01:56:13 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-05 01:57:35 +0800 |
| commit | c4d050e99da5a10ebe83e9229dcbd2b21758f54d (patch) | |
| tree | a9b6c65ef3d1ba494976febbe4e08d90a0c51176 /autoload/buf_utils.vim | |
| parent | 4d3c038cb500de307eb95e6b7c1ec21f075323c7 (diff) | |
Use nvim-notify for showing messages
Diffstat (limited to 'autoload/buf_utils.vim')
| -rw-r--r-- | autoload/buf_utils.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/buf_utils.vim b/autoload/buf_utils.vim index fa2aefd..37e7a75 100644 --- a/autoload/buf_utils.vim +++ b/autoload/buf_utils.vim @@ -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 |
