Revert "s:Detect: only add readable files to &tags and doc"
This reverts commit 31dead6d80
.
Generating the tags file after already loading the buffer burns me over
and over and over again, and I'm not convinced there was a problem to
begin with.
This commit is contained in:
parent
d63a475fcb
commit
d1406ae23a
@ -151,18 +151,10 @@ function! s:Detect(path)
|
|||||||
if expand('%:p') =~# '//'
|
if expand('%:p') =~# '//'
|
||||||
call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', ''))
|
call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', ''))
|
||||||
endif
|
endif
|
||||||
" Look for tags file in .git dir and add them to &tags
|
if stridx(buffer.getvar('&tags'), escape(b:git_dir.'/tags', ', ')) == -1
|
||||||
" See http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html
|
call buffer.setvar('&tags', escape(b:git_dir.'/tags', ', ').','.buffer.getvar('&tags'))
|
||||||
let tagsfile = b:git_dir.'/tags'
|
|
||||||
if stridx(buffer.getvar('&tags'), escape(tagsfile, ', ')) == -1
|
|
||||||
if filereadable(tagsfile)
|
|
||||||
call buffer.setvar('&tags', escape(tagsfile, ', ').','.buffer.getvar('&tags'))
|
|
||||||
endif
|
|
||||||
if &filetype !=# ''
|
if &filetype !=# ''
|
||||||
let tagsfile = b:git_dir.'/'.&filetype.'.tags'
|
call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags'))
|
||||||
if filereadable(tagsfile)
|
|
||||||
call buffer.setvar('&tags', escape(tagsfile, ', ').','.buffer.getvar('&tags'))
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user