@@ -1640,21 +1640,21 @@ Q: I want to narrow current items without auto completion.
16401640
16411641A: You can narrow current items by "ddu.vim" like this.
16421642>vim
1643- inoremap <C-l> <Cmd> call ddu#start(#{
1644- \ name: 'ddc' ,
1645- \ ui: 'ff' ,
1646- \ sync: v:true,
1647- \ input: matchstr(getline('.')[: col('.') - 1], '\k*$'),
1648- \ sources: [
1649- \ #{ name: 'ddc' , options: #{ defaultAction: 'complete' } },
1650- \ ],
1651- \ uiParams: #{
1652- \ ff: #{
1653- \ startFilter: v:true,
1654- \ replaceCol: match(getline('.')[: col('.') - 1], '\k*$') + 1,
1655- \ },
1656- \ },
1657- \ })<CR>
1643+ inoremap <C-l> <Cmd> call ddu#start(#{
1644+ \ name: 'ddc' ,
1645+ \ ui: 'ff' ,
1646+ \ sync: v:true,
1647+ \ input: matchstr(getline('.')[: col('.') - 1], '\k*$'),
1648+ \ sources: [
1649+ \ #{ name: 'ddc' , options: #{ defaultAction: 'complete' } },
1650+ \ ],
1651+ \ uiParams: #{
1652+ \ ff: #{
1653+ \ startFilter: v:true,
1654+ \ replaceCol: match(getline('.')[: col('.') - 1], '\k*$') + 1,
1655+ \ },
1656+ \ },
1657+ \ })<CR>
16581658<
16591659NOTE: "ddu.vim" configuration is required.
16601660
@@ -1672,8 +1672,8 @@ https://github.com/Shougo/ddc-source-zsh
16721672
16731673>vim
16741674 call ddc#custom#patch_global('autoCompleteEvents', [
1675- \ 'InsertEnter', 'TextChangedI', 'TextChangedP',
1676- \ 'CmdlineEnter', 'CmdlineChanged', 'TextChangedT',
1675+ \ 'InsertEnter', 'TextChangedI', 'TextChangedP',
1676+ \ 'TextChangedT',
16771677 \ ])
16781678 call ddc#custom#patch_global('ui' , 'pum' )
16791679 call ddc#enable_terminal_completion()
0 commit comments