Skip to content

Commit

Permalink
Better completion example
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed May 3, 2020
1 parent 5b6f282 commit 2c07630
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 316,8 @@ Completion functions

```vim
" Path completion with custom source command
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('fd')
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('rg --files')
inoremap <expr> <c-x><c-f> fzf#vim#complete#path('fd')
inoremap <expr> <c-x><c-f> fzf#vim#complete#path('rg --files')
" Word completion with custom spec with popup layout option
inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'window': { 'width': 0.2, 'height': 0.9, 'xoffset': 1 }})
Expand Down
4 changes: 2 additions & 2 deletions doc/fzf-vim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 378,8 @@ COMPLETION FUNCTIONS *fzf-vim-completion-functions*
----------------------------------------- --------------------------------------
>
" Path completion with custom source command
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('fd')
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('rg --files')
inoremap <expr> <c-x><c-f> fzf#vim#complete#path('fd')
inoremap <expr> <c-x><c-f> fzf#vim#complete#path('rg --files')
" Word completion with custom spec with popup layout option
inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'window': { 'width': 0.2, 'height': 0.9, 'xoffset': 1 }})
Expand Down

0 comments on commit 2c07630

Please sign in to comment.