Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding debug_activation option

  • Loading branch information...
commit 236c85dce133f6e77bfed4156f131b32dca99e3d 1 parent 5fee544
@MarcWeber authored
View
6 autoload/vam.vim
@@ -43,6 +43,7 @@ let s:c['plugin_root_dir'] = expand(s:c['plugin_root_dir'])
let s:c['dont_source'] = get(s:c, 'dont_source', 0)
let s:c['plugin_dir_by_name'] = get(s:c, 'plugin_dir_by_name', 'vam#DefaultPluginDirFromName')
let s:c['addon_completion_lhs'] = get(s:c, 'addon_completion_lhs', '<C-x><C-p>')
+let s:c['debug_activation'] = get(s:c, 'debug_activation', 0)
" More options that are used for plugins’ installation are listed in
" autoload/vam/install.vim
@@ -185,6 +186,11 @@ fun! vam#ActivateRecursively(list_of_names, ...)
call add(opts['new_runtime_paths'], rtp)
let s:c['activated_plugins'][name] = 1
+
+ if s:c.debug_activation
+ " activation takes place later (-> new_runtime_paths), but messages will be in order
+ call vam#Log('activating '.name.' required by: '.join(get(opts, 'requested_by', []),' > '))
+ end
endif
endfor
endf
View
4 doc/vim-addon-manager-additional-documentation.txt
@@ -355,6 +355,10 @@ MergeSources *VAM-MergeSources*
An Example can be found in this file.
+debug_activation *VAM-debug_activation*
+ prints lines why which plugin gets activated. Not pretty - but helpful
+ in some cases.
+
==============================================================================
6. Uninstalling Plugins *VAM-uninstall-plugins*
View
1  doc/vim-addon-manager-getting-started.txt
@@ -149,6 +149,7 @@ recommended setup ~
" Example: drop git sources unless git is in PATH. Same plugins can
" be installed from www.vim.org. Lookup MergeSources to get more control
" let g:vim_addon_manager['drop_git_sources'] = !executable('git')
+ " let g:vim_addon_manager.debug_activation = 1
" VAM install location:
let vam_install_path = expand('$HOME') . '/.vim/vim-addons'
Please sign in to comment.
Something went wrong with that request. Please try again.