Mercurial > vim-gutentags
changeset 67:57649935316f
Only consider main filetype in cases like 'python.django'
author | marc <marc@lamarciana.com> |
---|---|
date | Sun, 17 May 2015 10:43:24 +0200 |
parents | a14a788e3809 |
children | ca61487b3215 |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Sun May 17 10:39:20 2015 +0200 +++ b/autoload/gutentags.vim Sun May 17 10:43:24 2015 +0200 @@ -177,8 +177,10 @@ " Get final ctags executable depending whether a filetype one is defined function! gutentags#get_ctags_executable() abort - if exists('g:gutentags_ctags_executable_{&filetype}') - return g:gutentags_ctags_executable_{&filetype} + "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