mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 12:44:39 +08:00
Add filetype specific tags
This commit is contained in:
1 parent
156123520b
commit
af9d44f91b
1 file changed
+3
@@ -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