Skip to content

Commit a676a11

Browse files
committed
add doc for g:sleuth_editorconfig_overrides
1 parent 1d25e8e commit a676a11

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/sleuth.txt

+10
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,15 @@ Sleuth forces |:filetype-indent-on| by default, which enables file-type
7979
specific indenting algorithms and is highly recommended. To opt out:
8080
>
8181
let g:sleuth_no_filetype_indent_on = 1
82+
<
83+
*g:sleuth_editorconfig_overrides*
84+
The value can be a relative or absolute path, or an empty string to disable
85+
the file without replacing it. On Windows, forward slashes must be used.
86+
87+
This is a solution to the problem of a repository including a poorly
88+
considered .editorconfig that can't easily be changed.
89+
>
90+
let g:sleuth_editorconfig_overrides = {
91+
\ expand('~/bad/repo/.editorconfig'): '.editorconfig.mine'}
8292
<
8393
vim:tw=78:et:ft=help:norl:

0 commit comments

Comments
 (0)