mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
[doc] fzf#vim#with_preview does not require any argument
This commit is contained in:
@@ -183,7 +183,7 @@ command! -bang Colors
|
||||
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'}, <bang>0)
|
||||
|
||||
" Augmenting Ag command using fzf#vim#with_preview function
|
||||
" * fzf#vim#with_preview([[options], preview window, [toggle keys...]])
|
||||
" * fzf#vim#with_preview([[options], [preview window], [toggle keys...]])
|
||||
" * For syntax-highlighting, Ruby and any of the following tools are required:
|
||||
" - Bat: https://github.com/sharkdp/bat
|
||||
" - Highlight: http://www.andre-simon.de/doku/highlight/en/highlight.php
|
||||
|
||||
@@ -74,7 +74,7 @@ function! s:prepend_opts(dict, eopts)
|
||||
return s:extend_opts(a:dict, a:eopts, 1)
|
||||
endfunction
|
||||
|
||||
" [[options to wrap], preview window expression, [toggle-preview keys...]]
|
||||
" [[options to wrap], [preview window expression], [toggle-preview keys...]]
|
||||
function! fzf#vim#with_preview(...)
|
||||
" Default options
|
||||
let options = {}
|
||||
|
||||
@@ -228,7 +228,7 @@ You can use autoload functions to define your own commands.
|
||||
\ call fzf#vim#colors({'left': '15%', 'options': '--reverse --margin 30%,0'}, <bang>0)
|
||||
|
||||
" Augmenting Ag command using fzf#vim#with_preview function
|
||||
" * fzf#vim#with_preview([[options], preview window, [toggle keys...]])
|
||||
" * fzf#vim#with_preview([[options], [preview window], [toggle keys...]])
|
||||
" * For syntax-highlighting, Ruby and any of the following tools are required:
|
||||
" - Highlight: http://www.andre-simon.de/doku/highlight/en/highlight.php
|
||||
" - CodeRay: http://coderay.rubychan.de/
|
||||
|
||||
Reference in New Issue
Block a user