Mercurial > vim-gutentags
comparison autoload/gutentags.vim @ 88:073e63cc0456
Add `gutentags_enabled_user_func` callback.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 24 Nov 2015 21:47:26 -0800 |
parents | afe113047204 |
children | 8bf96f9f649c |
comparison
equal
deleted
inserted
replaced
87:afe113047204 | 88:073e63cc0456 |
---|---|
102 | 102 |
103 " Don't setup gutentags for anything that's not a normal buffer | 103 " Don't setup gutentags for anything that's not a normal buffer |
104 " (so don't do anything for help buffers and quickfix windows and | 104 " (so don't do anything for help buffers and quickfix windows and |
105 " other such things) | 105 " other such things) |
106 if &buftype != '' | 106 if &buftype != '' |
107 return | |
108 endif | |
109 | |
110 " Let the user specify custom ways to disable Gutentags. | |
111 if g:gutentags_enabled_user_func != '' && | |
112 \!call(g:gutentags_enabled_user_func, [expand('%:p')]) | |
113 call gutentags#trace("Ignoring '" . bufname('%') . "' because of " . | |
114 \"custom user function.") | |
107 return | 115 return |
108 endif | 116 endif |
109 | 117 |
110 " Try and find what tags file we should manage. | 118 " Try and find what tags file we should manage. |
111 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") | 119 call gutentags#trace("Scanning buffer '" . bufname('%') . "' for gutentags setup...") |