Skip to content

Commit 9a106c7

Browse files
noscriptalerque
authored andcommitted
feat: Allow exclude files with no 'filetype' set
Closes #135 & #122
1 parent d96c818 commit 9a106c7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

autoload/indent_guides.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function! indent_guides#exclude_filetype() abort
286286
return 1
287287
endif
288288
endif
289-
for ft in split(&ft, '\.')
289+
for ft in split(&ft, '\.', 1)
290290
if index(g:indent_guides_exclude_filetypes, ft) > -1
291291
return 1
292292
end

doc/indent_guides.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ Default: 0. Values: 0 or 1
180180
<
181181
------------------------------------------------------------------------------
182182
*'indent_guides_exclude_filetypes'*
183-
Use this option to specify a list of filetypes to disable the plugin for.
183+
Use this option to specify a list of filetypes to disable the plugin for. Use
184+
'' for files with no filetypes set.
184185

185186
Default: ['help']. Values: list of strings.
186187
>
@@ -273,8 +274,9 @@ Bug reports, feedback, suggestions etc are welcomed.
273274
7. CHANGELOG *indent-guides-changelog*
274275

275276
1.8 (pending release)~
277+
* Allow exclude files with no 'filetype' set (thanks @noscript).
276278
* Added option g:|indent_guides_soft_pattern| to control the pattern for
277-
soft indentation (thanks @sergey-vlasov).
279+
soft indentation (thanks @noscript).
278280
* Added option g:|indent_guides_default_mapping| to control whether the
279281
default mapping (<Leader>ig) gets set (thanks @suy).
280282
* Set size of indent guide to `tabstop` value when `shiftwidth=0` or

0 commit comments

Comments
 (0)