|
autocmd.subscribe({ 'InsertEnter' }, async.debounce_next_tick_by_keymap(on_insert_enter)) |
It calls
cmp.core:prepare() for every InsertEnter and it takes 20ms to run that prepare function, which makes
o become laggy.
And it is not async as its name suggests, because if you put a heavy loop in
on_insert_enter and type o editor will freeze.
nvim-cmp/lua/cmp/init.lua
Line 333 in 8f3c541
It calls
cmp.core:prepare()for every InsertEnter and it takes 20ms to run that prepare function, which makesobecome laggy.And it is not async as its name suggests, because if you put a heavy loop in
on_insert_enterand type o editor will freeze.