mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
fix: wilder.nvim auto-start improvement
Using CursorHold to start wilder.nvim is not ideal, since it depends on the value of option 'updatetime'. Using a timer may be a better idea.
This commit is contained in:
parent
8ce677a50f
commit
295f47b1fb
@ -382,11 +382,7 @@ endif
|
|||||||
nnoremap <leader>dp :<C-U>GdbStartPDB python -m pdb %<CR>
|
nnoremap <leader>dp :<C-U>GdbStartPDB python -m pdb %<CR>
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""wilder.nvim settings""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""wilder.nvim settings""""""""""""""""""""""""""""""
|
||||||
augroup wilder_init
|
call timer_start(250, { -> s:wilder_init() })
|
||||||
autocmd!
|
|
||||||
" CursorHold is suggested here: https://github.com/gelguy/wilder.nvim/issues/89#issuecomment-934465957.
|
|
||||||
autocmd CursorHold * ++once call s:wilder_init()
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
function! s:wilder_init() abort
|
function! s:wilder_init() abort
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user