From 8a0a36364615f9766b4f22abf1082552afa2d174 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Thu, 7 Mar 2013 17:15:50 +0100 Subject: ENH: Allow to specify different ctags tool for particular languages. Implement this via a new configuration option g:easytags_languages, a Dictionary that contains the ctags languages as keys, and corresponding special cmds, args, etc. as values. --- doc/easytags.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'doc/easytags.txt') diff --git a/doc/easytags.txt b/doc/easytags.txt index 372c541..3747971 100644 --- a/doc/easytags.txt +++ b/doc/easytags.txt @@ -125,6 +125,33 @@ where you've installed Exuberant Ctags, e.g.: > :let g:easytags_cmd = '/usr/local/bin/ctags' +If you entirely rely on language-specific configuration and don't have a +general ctags program, set this to the empty string. + +------------------------------------------------------------------------------- +The *g:easytags_languages* option + +The Exuberant Ctags tools supports many languages and can be extended via +regexp patterns, but for some languages, separate tools with ctags-compatible +output exist (e.g. jsctags for Javascript). To use these, the executable and +its arguments must be configured. > + + let g:easytags_languages = { + \ 'language': { + \ 'cmd': g:easytags_cmd, + \ 'args': [], + \ 'fileoutput_opt': '-f', + \ 'stdout_opt': '-f-', + \ 'recurse_flag': '-R' + \ } + \} + +Each key is a special language definition. The key is in the notation of +ctags in lowercase; you still need to use xolox#easytags#map_filetypes() to +map this to Vim's filetypes, if necessary. +Above snippets shows the defaults; you only need to specify options that +differ. + ------------------------------------------------------------------------------- The *g:easytags_file* option -- cgit v1.2.3