mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Add filetype specific tags
This commit is contained in:
@@ -137,6 +137,9 @@ function! s:Detect(path)
|
||||
call buffer.setvar('&path',s:sub(buffer.getvar('&path'),'^\.%(,|$)',''))
|
||||
endif
|
||||
if b:git_dir !~# ',' && stridx(buffer.getvar('&tags'),b:git_dir.'/tags') == -1
|
||||
if &filetype != ''
|
||||
call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/'.&filetype.'.tags')
|
||||
endif
|
||||
call buffer.setvar('&tags',buffer.getvar('&tags').','.b:git_dir.'/tags')
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user