mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
@@ -125,8 +125,11 @@ let g:fzf_colors =
|
||||
" [Buffers] Jump to the existing window if possible
|
||||
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"'
|
||||
|
||||
" [Tags] Command to generate tags file
|
||||
let g:fzf_tags_command = 'ctags -R'
|
||||
```
|
||||
|
||||
#### Advanced customization using autoload functions
|
||||
|
||||
@@ -632,7 +632,7 @@ function! fzf#vim#tags(query, ...)
|
||||
redraw
|
||||
if gen =~ '^y'
|
||||
call s:warn('Preparing tags')
|
||||
call system('ctags -R')
|
||||
call system(get(g:, 'fzf_tags_command', 'ctags -R'))
|
||||
if empty(tagfiles())
|
||||
return s:warn('Failed to create tags')
|
||||
endif
|
||||
|
||||
@@ -154,9 +154,12 @@ Command-local options~
|
||||
" [Buffers] Jump to the existing window if possible
|
||||
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"'
|
||||
|
||||
" [Tags] Command to generate tags file
|
||||
let g:fzf_tags_command = 'ctags -R'
|
||||
<
|
||||
|
||||
Advanced customization using autoload functions~
|
||||
|
||||
Reference in New Issue
Block a user