diff options
| author | jdhao <jdhao@hotmail.com> | 2021-10-18 22:32:38 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-10-18 22:32:38 +0800 |
| commit | 646453939941d92b077af56ce1d40793120bf97a (patch) | |
| tree | 6911802748db0288dfc9b898cc958bbd13e5aea5 /core/autocommands.vim | |
| parent | 30ca579ee9eeb38bc759007fc3d16e52b0e43d3e (diff) | |
nvim-notify update
Diffstat (limited to 'core/autocommands.vim')
| -rw-r--r-- | core/autocommands.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim index 34a45a6..852f745 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -33,7 +33,7 @@ augroup END augroup non_utf8_file_warn autocmd! " we can not use `lua vim.notify()`: it will error out E5107 parsing lua. - autocmd BufRead * if &fileencoding != 'utf-8' | call v:lua.vim.notify('File not in UTF-8 format!', 'warn', {'title': 'nvim-config', 'timeout': 2500}) | endif + autocmd BufRead * if &fileencoding != 'utf-8' | call v:lua.vim.notify('File not in UTF-8 format!', 'warn', {'title': 'nvim-config'}) | endif augroup END " Automatically reload the file if it is changed outside of Nvim, see @@ -43,7 +43,7 @@ augroup END " https://vi.stackexchange.com/a/20397/15292. augroup auto_read autocmd! - autocmd FileChangedShellPost * call v:lua.vim.notify("File changed on disk. Buffer reloaded!", 'warn', {'title': 'nvim-config', 'timeout': 2500}) + autocmd FileChangedShellPost * call v:lua.vim.notify("File changed on disk. Buffer reloaded!", 'warn', {'title': 'nvim-config'}) autocmd FocusGained,CursorHold * if getcmdwintype() == '' | checktime | endif augroup END |
