Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 1, 2024
1 parent b6e598e commit b2347fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion autoload/ddc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions denops/ddc/ddc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() ==# '@'" +
Expand Down

0 comments on commit b2347fe

Please sign in to comment.