comparison autoload/gutentags.vim @ 85:0424970d81f8

Add a `g:gutentags_resolve_symlinks` option to resolve symlinks at setup time.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 09 Oct 2015 15:28:39 -0700
parents 96bfe5c37f37
children afe113047204
comparison
equal deleted inserted replaced
84:96bfe5c37f37 85:0424970d81f8
108 endif 108 endif
109 109
110 " Try and find what tags file we should manage. 110 " Try and find what tags file we should manage.
111 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") 111 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...")
112 try 112 try
113 let b:gutentags_root = gutentags#get_project_root(expand('%:p:h', 1)) 113 let l:buf_dir = expand('%:p:h', 1)
114 if g:gutentags_resolve_symlinks
115 let l:buf_dir = fnamemodify(resolve(expand('%:p', 1)), ':p:h')
116 endif
117 let b:gutentags_root = gutentags#get_project_root(l:buf_dir)
114 if filereadable(b:gutentags_root . '/.notags') 118 if filereadable(b:gutentags_root . '/.notags')
115 call gutentags#trace("'notags' file found... no gutentags support.") 119 call gutentags#trace("'notags' file found... no gutentags support.")
116 return 120 return
117 endif 121 endif
118 122