Skip to content

Commit 1c3411f

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/sleuth.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,16 @@ 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. Leaving undocumented
89+
because I don't know if this is actually a problem in practice.
90+
>
91+
let g:sleuth_editorconfig_overrides = {
92+
\ expand('~/bad/repo/.editorconfig'): '.editorconfig.mine'}
8293
<
8394
vim:tw=78:et:ft=help:norl:

0 commit comments

Comments
 (0)