mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 21:24:40 +08:00
@@ -125,8 +125,11 @@ let g:fzf_colors =
|
|||||||
" [Buffers] Jump to the existing window if possible
|
" [Buffers] Jump to the existing window if possible
|
||||||
let g:fzf_buffers_jump = 1
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
" [[B]Commits] to customize the options used by 'git log':
|
" [[B]Commits] Customize the options used by 'git log':
|
||||||
let g:fzf_commits_log_options = '--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
|
let g:fzf_commits_log_options = '--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
|
||||||
|
|
||||||
|
" [Tags] Command to generate tags file
|
||||||
|
let g:fzf_tags_command = 'ctags -R'
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Advanced customization using autoload functions
|
#### Advanced customization using autoload functions
|
||||||
|
|||||||
@@ -632,7 +632,7 @@ function! fzf#vim#tags(query, ...)
|
|||||||
redraw
|
redraw
|
||||||
if gen =~ '^y'
|
if gen =~ '^y'
|
||||||
call s:warn('Preparing tags')
|
call s:warn('Preparing tags')
|
||||||
call system('ctags -R')
|
call system(get(g:, 'fzf_tags_command', 'ctags -R'))
|
||||||
if empty(tagfiles())
|
if empty(tagfiles())
|
||||||
return s:warn('Failed to create tags')
|
return s:warn('Failed to create tags')
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -154,9 +154,12 @@ Command-local options~
|
|||||||
" [Buffers] Jump to the existing window if possible
|
" [Buffers] Jump to the existing window if possible
|
||||||
let g:fzf_buffers_jump = 1
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
" [[B]Commits] to customize the options used by 'git log':
|
" [[B]Commits] Customize the options used by 'git log':
|
||||||
let g:fzf_commits_log_options = \
|
let g:fzf_commits_log_options = \
|
||||||
'--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
|
'--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
|
||||||
|
|
||||||
|
" [Tags] Command to generate tags file
|
||||||
|
let g:fzf_tags_command = 'ctags -R'
|
||||||
<
|
<
|
||||||
|
|
||||||
Advanced customization using autoload functions~
|
Advanced customization using autoload functions~
|
||||||
|
|||||||
Reference in New Issue
Block a user