mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Point 'tags' at .git/tags
This commit is contained in:
@@ -132,10 +132,13 @@ function! s:Detect(path)
|
|||||||
if exists('b:git_dir')
|
if exists('b:git_dir')
|
||||||
silent doautocmd User Fugitive
|
silent doautocmd User Fugitive
|
||||||
cnoremap <expr> <buffer> <C-R><C-G> fugitive#buffer().rev()
|
cnoremap <expr> <buffer> <C-R><C-G> fugitive#buffer().rev()
|
||||||
|
let buffer = fugitive#buffer()
|
||||||
if expand('%:p') =~# '//'
|
if expand('%:p') =~# '//'
|
||||||
let buffer = fugitive#buffer()
|
|
||||||
call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)',''))
|
call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)',''))
|
||||||
endif
|
endif
|
||||||
|
if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir) == -1
|
||||||
|
call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user