Add filetype specific tags
This commit is contained in:
parent
156123520b
commit
af9d44f91b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user