comparison autoload/gutentags.vim @ 69:6900302dae0b

Merge pull request #28 from GitHub.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 16 Jul 2015 21:40:52 -0700
parents 0f5b4a36c920 57649935316f
children 661a97eaf608
comparison
equal deleted inserted replaced
65:3ae6964078ab 69:6900302dae0b
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
183 endfunction 194 endfunction
184 195
185 " Get the suffix for how to execute an external command. 196 " Get the suffix for how to execute an external command.
186 function! gutentags#get_execute_cmd_suffix() abort 197 function! gutentags#get_execute_cmd_suffix() abort
187 if has('win32') 198 if has('win32')