Better completion example

This commit is contained in:
Junegunn Choi
2020-05-03 17:36:28 +09:00
parent 5b6f282d97
commit 2c07630341
2 changed files with 4 additions and 4 deletions

View File

@@ -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 }})