Mercurial > vim-gutentags
comparison autoload/gutentags/ctags.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 | 9e768b83d701 |
children | 6900302dae0b |
comparison
equal
deleted
inserted
replaced
60:9e768b83d701 | 66:a14a788e3809 |
---|---|
39 execute "chdir " . fnameescape(l:work_dir) | 39 execute "chdir " . fnameescape(l:work_dir) |
40 | 40 |
41 try | 41 try |
42 " Build the command line. | 42 " Build the command line. |
43 let l:cmd = gutentags#get_execute_cmd() . s:runner_exe | 43 let l:cmd = gutentags#get_execute_cmd() . s:runner_exe |
44 let l:cmd .= ' -e "' . g:gutentags_ctags_executable . '"' | 44 let l:cmd .= ' -e "' . gutentags#get_ctags_executable() . '"' |
45 let l:cmd .= ' -t "' . a:tags_file . '"' | 45 let l:cmd .= ' -t "' . a:tags_file . '"' |
46 let l:cmd .= ' -p "' . a:proj_dir . '"' | 46 let l:cmd .= ' -p "' . a:proj_dir . '"' |
47 if a:write_mode == 0 && filereadable(a:tags_file) | 47 if a:write_mode == 0 && filereadable(a:tags_file) |
48 let l:full_path = expand('%:p') | 48 let l:full_path = expand('%:p') |
49 let l:cmd .= ' -s "' . l:full_path . '"' | 49 let l:cmd .= ' -s "' . l:full_path . '"' |