mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
Better completion example
This commit is contained in:
@@ -316,8 +316,8 @@ Completion functions
|
|||||||
|
|
||||||
```vim
|
```vim
|
||||||
" Path completion with custom source command
|
" Path completion with custom source command
|
||||||
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('fd')
|
inoremap <expr> <c-x><c-f> 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('rg --files')
|
||||||
|
|
||||||
" Word completion with custom spec with popup layout option
|
" 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 }})
|
inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'window': { 'width': 0.2, 'height': 0.9, 'xoffset': 1 }})
|
||||||
|
|||||||
@@ -378,8 +378,8 @@ COMPLETION FUNCTIONS *fzf-vim-completion-functions*
|
|||||||
-----------------------------------------+--------------------------------------
|
-----------------------------------------+--------------------------------------
|
||||||
>
|
>
|
||||||
" Path completion with custom source command
|
" Path completion with custom source command
|
||||||
inoremap <expr> <c-x><c-j> fzf#vim#complete#path('fd')
|
inoremap <expr> <c-x><c-f> 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('rg --files')
|
||||||
|
|
||||||
" Word completion with custom spec with popup layout option
|
" 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 }})
|
inoremap <expr> <c-x><c-k> fzf#vim#complete#word({'window': { 'width': 0.2, 'height': 0.9, 'xoffset': 1 }})
|
||||||
|
|||||||
Reference in New Issue
Block a user