diff autoload/gutentags.vim @ 229:34bee0477b51

Add `g:gutentags_exclude_filetypes` setting.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 12 Nov 2018 00:07:27 -0800
parents c64e8847b4e1
children a77c3eb4ce34
line wrap: on
line diff
--- a/autoload/gutentags.vim	Sun Nov 11 22:17:52 2018 -0800
+++ b/autoload/gutentags.vim	Mon Nov 12 00:07:27 2018 -0800
@@ -248,6 +248,12 @@
         return
     endif
 
+    " Don't setup gutentags for things that don't need it, or that could
+    " cause problems.
+    if index(g:gutentags_exclude_filetypes, &filetype) >= 0
+        return
+    endif
+
     " Let the user specify custom ways to disable Gutentags.
     if g:gutentags_init_user_func != '' &&
                 \!call(g:gutentags_init_user_func, [expand('%:p')])