File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,11 @@ endfunction
284
284
" Detect if any of the buffer filetypes should be excluded.
285
285
"
286
286
function ! indent_guides#exclude_filetype () abort
287
+ if exists (' g:indent_guides_exclude_buftype' )
288
+ if g: indent_guides_exclude_buftype && &buftype != ' '
289
+ return 1
290
+ endif
291
+ endif
287
292
for ft in split (&ft , ' \.' )
288
293
if index (g: indent_guides_exclude_filetypes , ft ) > -1
289
294
return 1
Original file line number Diff line number Diff line change @@ -170,6 +170,14 @@ Default: 0. Values: 0 or 1.
170
170
let g:indent_guides_enable_on_vim_startup = 0
171
171
<
172
172
173
+ ------------------------------------------------------------------------------
174
+ *'indent_guides_exclude_buftype'*
175
+ Use this option to try and disable the plugin on non-file buffers
176
+
177
+ Default: 0. Values: 0 or 1
178
+ >
179
+ let g:indent_guides_exclude_buftype = 0
180
+ <
173
181
------------------------------------------------------------------------------
174
182
*'indent_guides_exclude_filetypes'*
175
183
Use this option to specify a list of filetypes to disable the plugin for.
You can’t perform that action at this time.
0 commit comments