comparison autoload/gutentags.vim @ 66:a14a788e3809

Filetype specific ctags executable command If, for example, a variable `g:gutentags_ctags_executable_ruby` is found, its value will be used as the ctags executable command for ruby filetype files. Otherwise, it will default to global `g:gutentags_ctags_executable`
author marc <marc@lamarciana.com>
date Sun, 17 May 2015 10:39:20 +0200
parents 4cda41f830c3
children 57649935316f
comparison
equal deleted inserted replaced
60:9e768b83d701 66:a14a788e3809
171 endif 171 endif
172 return l:cmd 172 return l:cmd
173 else 173 else
174 return '!' 174 return '!'
175 endif 175 endif
176 endfunction
177
178 " Get final ctags executable depending whether a filetype one is defined
179 function! gutentags#get_ctags_executable() abort
180 if exists('g:gutentags_ctags_executable_{&filetype}')
181 return g:gutentags_ctags_executable_{&filetype}
182 else
183 return g:gutentags_ctags_executable
184 endif
176 endfunction 185 endfunction
177 186
178 " Get the suffix for how to execute an external command. 187 " Get the suffix for how to execute an external command.
179 function! gutentags#get_execute_cmd_suffix() abort 188 function! gutentags#get_execute_cmd_suffix() abort
180 if has('win32') 189 if has('win32')