diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-20 01:12:35 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-20 01:12:35 +0800 |
| commit | 42a0663184cb356d4e662956a2b8f04c3b38007b (patch) | |
| tree | e9571d77549ac9252fd52c3c111a206b381e95a4 /core/autocommands.vim | |
| parent | 30774cac5bc02ab8638ac7667e5eee8e0f41a9a6 (diff) | |
Reduce timeout for nvim-notify
Diffstat (limited to 'core/autocommands.vim')
| -rw-r--r-- | core/autocommands.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/autocommands.vim b/core/autocommands.vim index 5306b63..34a45a6 100644 --- a/core/autocommands.vim +++ b/core/autocommands.vim @@ -32,8 +32,8 @@ augroup END " https://github.com/vim/vim/issues/4379 augroup non_utf8_file_warn autocmd! - " we can not `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'}) | endif + " 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 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'}) + autocmd FileChangedShellPost * call v:lua.vim.notify("File changed on disk. Buffer reloaded!", 'warn', {'title': 'nvim-config', 'timeout': 2500}) autocmd FocusGained,CursorHold * if getcmdwintype() == '' | checktime | endif augroup END |
