diff options
author | Peter Odding <peter@peterodding.com> | 2014-11-13 22:52:57 +0100 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2014-11-13 22:52:57 +0100 |
commit | 075ffe9054dd71f8c2f26fe9cfa4fd5200e6af96 (patch) | |
tree | e4da170dea4aac838a9fb8397537046e713ecdb1 /autoload/xolox/easytags | |
parent | 706c6650f3af2f44352f2d0dfc64be5727e1c097 (diff) | |
download | vim-easytags-075ffe9054dd71f8c2f26fe9cfa4fd5200e6af96.tar.gz |
Add g:easytags_opts option (issue #98)
See also issue #98 on GitHub:
https://github.com/xolox/vim-easytags/issues/98
Diffstat (limited to 'autoload/xolox/easytags')
-rw-r--r-- | autoload/xolox/easytags/filetypes.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/autoload/xolox/easytags/filetypes.vim b/autoload/xolox/easytags/filetypes.vim index aef073a..4749a9d 100644 --- a/autoload/xolox/easytags/filetypes.vim +++ b/autoload/xolox/easytags/filetypes.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding <peter@peterodding.com> -" Last Change: October 21, 2014 +" Last Change: November 13, 2014 " URL: http://peterodding.com/code/vim/easytags/ " This submodule of the vim-easytags plug-in translates between back and forth @@ -87,10 +87,11 @@ function! s:discover_supported_filetypes() " {{{1 " Initialize predefined groups & mappings and discover supported file types. if !s:discovered_filetypes " Discover the file types supported by Exuberant Ctags? - if !empty(g:easytags_cmd) + let command_line = xolox#easytags#ctags_command() + if !empty(command_line) let starttime = xolox#misc#timer#start() - let command = g:easytags_cmd . ' --list-languages' - for line in xolox#misc#os#exec({'command': command})['stdout'] + let command_line .= ' --list-languages' + for line in xolox#misc#os#exec({'command': command_line})['stdout'] if line =~ '\[disabled\]$' " Ignore languages that have been explicitly disabled using `--languages=-Vim'. continue |