mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
clear cmdline msg after some time
This commit is contained in:
parent
9c7527c2e7
commit
6749ecfac5
@ -64,4 +64,16 @@ augroup highlight_yank
|
|||||||
autocmd!
|
autocmd!
|
||||||
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300}
|
au TextYankPost * silent! lua vim.highlight.on_yank{higroup="YankColor", timeout=300}
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
" Clear cmd line message
|
||||||
|
function! s:empty_message(timer)
|
||||||
|
if mode() !=# 'c'
|
||||||
|
echo ''
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup cmd_msg_cls
|
||||||
|
autocmd!
|
||||||
|
autocmd CmdlineLeave : call timer_start(5000, funcref('s:empty_message'))
|
||||||
|
augroup END
|
||||||
"}
|
"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user