comparison autoload/gutentags.vim @ 70:661a97eaf608

Move `get_ctags_executable` to the `ctags` module.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 16 Jul 2015 21:43:06 -0700
parents 6900302dae0b
children d12543f11eb9
comparison
equal deleted inserted replaced
69:6900302dae0b 70:661a97eaf608
178 endif 178 endif
179 return l:cmd 179 return l:cmd
180 else 180 else
181 return '!' 181 return '!'
182 endif 182 endif
183 endfunction
184
185 " Get final ctags executable depending whether a filetype one is defined
186 function! gutentags#get_ctags_executable() abort
187 "Only consider the main filetype in cases like 'python.django'
188 let l:ftype = get(split(&filetype, '\.'), 0, '')
189 if exists('g:gutentags_ctags_executable_{l:ftype}')
190 return g:gutentags_ctags_executable_{l:ftype}
191 else
192 return g:gutentags_ctags_executable
193 endif
194 endfunction 183 endfunction
195 184
196 " Get the suffix for how to execute an external command. 185 " Get the suffix for how to execute an external command.
197 function! gutentags#get_execute_cmd_suffix() abort 186 function! gutentags#get_execute_cmd_suffix() abort
198 if has('win32') 187 if has('win32')