Skip to content

Commit 71ceb48

Browse files
committed
Update the documentation
1 parent c760d4a commit 71ceb48

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

doc/ddc.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,21 +1640,21 @@ Q: I want to narrow current items without auto completion.
16401640

16411641
A: 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
<
16591659
NOTE: "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

Comments
 (0)