Mercurial > vim-gutentags
diff 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 |
line wrap: on
line diff
--- a/autoload/gutentags.vim Wed Jul 15 23:15:39 2015 -0700 +++ b/autoload/gutentags.vim Thu Jul 16 21:40:52 2015 -0700 @@ -182,6 +182,17 @@ endif endfunction +" Get final ctags executable depending whether a filetype one is defined +function! gutentags#get_ctags_executable() abort + "Only consider the main filetype in cases like 'python.django' + let l:ftype = get(split(&filetype, '\.'), 0, '') + if exists('g:gutentags_ctags_executable_{l:ftype}') + return g:gutentags_ctags_executable_{l:ftype} + else + return g:gutentags_ctags_executable + endif +endfunction + " Get the suffix for how to execute an external command. function! gutentags#get_execute_cmd_suffix() abort if has('win32')