This commit is contained in:
hrsh7th
2022-12-27 15:53:05 +09:00
parent a9c701fa7e
commit e55033fce4
2 changed files with 11 additions and 1 deletions

View File

@@ -304,7 +304,8 @@ local on_insert_enter = function()
cmp.core:on_change('InsertEnter')
end
end
autocmd.subscribe({ 'InsertEnter', 'CmdlineEnter' }, async.debounce_next_tick(on_insert_enter))
autocmd.subscribe({ 'CmdlineEnter' }, async.debounce_next_tick(on_insert_enter))
autocmd.subscribe({ 'InsertEnter' }, async.debounce_next_tick_by_keymap(on_insert_enter))
-- async.throttle is needed for performance. The mapping `:<C-u>...<CR>` will fire `CmdlineChanged` for each character.
local on_text_changed = function()