Mercurial > vim-gutentags
comparison autoload/gutentags/ctags.vim @ 93:edd488d8d37e
Give some error message if there's no available `ctags` on the system.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 17 Feb 2016 23:30:24 -0800 |
parents | 8bf96f9f649c |
children | e03a661dc983 |
comparison
equal
deleted
inserted
replaced
92:6bbed9e4c01e | 93:edd488d8d37e |
---|---|
34 \a:project_root, g:gutentags_tagfile) | 34 \a:project_root, g:gutentags_tagfile) |
35 | 35 |
36 " Set the tags file for Vim to use. | 36 " Set the tags file for Vim to use. |
37 if g:gutentags_auto_set_tags | 37 if g:gutentags_auto_set_tags |
38 execute 'setlocal tags^=' . fnameescape(b:gutentags_files['ctags']) | 38 execute 'setlocal tags^=' . fnameescape(b:gutentags_files['ctags']) |
39 endif | |
40 | |
41 " Check if the ctags executable exists. | |
42 if g:gutentags_enabled && executable(g:gutentags_ctags_executable) == 0 | |
43 let g:gutentags_enabled = 0 | |
44 echoerr "Executable '".g:gutentags_ctags_executable."' can't be found. " | |
45 \."Gutentags will be disabled. You can re-enable it by " | |
46 \."setting g:gutentags_enabled back to 1." | |
39 endif | 47 endif |
40 endfunction | 48 endfunction |
41 | 49 |
42 function! gutentags#ctags#generate(proj_dir, tags_file, write_mode) abort | 50 function! gutentags#ctags#generate(proj_dir, tags_file, write_mode) abort |
43 " Get to the tags file directory because ctags is finicky about | 51 " Get to the tags file directory because ctags is finicky about |