mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
Remove duplicate example
This commit is contained in:
@@ -292,13 +292,6 @@ be used as the source.
|
|||||||
>
|
>
|
||||||
" Replace the default dictionary completion with fzf-based fuzzy completion
|
" Replace the default dictionary completion with fzf-based fuzzy completion
|
||||||
inoremap <expr> <c-x><c-k> fzf#vim#complete('cat /usr/share/dict/words')
|
inoremap <expr> <c-x><c-k> fzf#vim#complete('cat /usr/share/dict/words')
|
||||||
|
|
||||||
" Global line completion (ripgrep required)
|
|
||||||
inoremap <expr> <c-x><c-l> fzf#vim#complete(fzf#wrap({
|
|
||||||
\ 'prefix': '^.*$',
|
|
||||||
\ 'source': 'rg -n ^ --color always',
|
|
||||||
\ 'options': '--ansi --delimiter : --nth 3..',
|
|
||||||
\ 'reducer': { lines -> join(split(lines[0], ':\zs')[2:], '') }}))
|
|
||||||
<
|
<
|
||||||
For advanced uses, you can pass an options dictionary to the function. The set
|
For advanced uses, you can pass an options dictionary to the function. The set
|
||||||
of options is pretty much identical to that for `fzf#run` only with the
|
of options is pretty much identical to that for `fzf#run` only with the
|
||||||
|
|||||||
Reference in New Issue
Block a user