aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorIngo Karkat <swdev@ingo-karkat.de>2013-03-07 17:15:50 +0100
committerIngo Karkat <swdev@ingo-karkat.de>2013-03-07 17:15:50 +0100
commit8a0a36364615f9766b4f22abf1082552afa2d174 (patch)
tree84fb2f78b4f0a2a0e527e995705527280ac5b427 /doc
parent44b04871f812418ac0fe7b38e59222de118d07cb (diff)
downloadvim-easytags-8a0a36364615f9766b4f22abf1082552afa2d174.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/easytags.txt27
1 files changed, 27 insertions, 0 deletions
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