diff --git a/autoload/ddc.vim b/autoload/ddc.vim index 30e5087..ba5bf89 100644 --- a/autoload/ddc.vim +++ b/autoload/ddc.vim @@ -14,7 +14,6 @@ function ddc#enable_cmdline_completion() abort \ | call ddc#on_event('CmdlineChanged') \ | endif autocmd ModeChanged c:n call s:disable_cmdline_completion() - autocmd ModeChanged *:i call ddc#on_event('InsertEnter') augroup END let b:ddc_cmdline_completion = v:true diff --git a/denops/ddc/ddc.ts b/denops/ddc/ddc.ts index ef044d9..d3507e7 100644 --- a/denops/ddc/ddc.ts +++ b/denops/ddc/ddc.ts @@ -98,6 +98,9 @@ export class Ddc { "TextChangedI", "TextChangedP", ]); + await denops.cmd( + "autocmd ddc ModeChanged *:i call ddc#on_event('InsertEnter')" + ); await denops.cmd( "autocmd ddc CmdlineChanged * " + ": if getcmdtype() ==# '=' || getcmdtype() ==# '@'" +