Add filetype specific tags

This commit is contained in:
Tim Pope 2011-02-07 15:02:25 -05:00
parent 156123520b
commit af9d44f91b

View File

@ -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