Skip to content

Commit

Permalink
add doc for g:sleuth_editorconfig_overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jackielii committed Jun 14, 2022
1 parent 1d25e8e commit a676a11
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/sleuth.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,15 @@ Sleuth forces |:filetype-indent-on| by default, which enables file-type
specific indenting algorithms and is highly recommended. To opt out:
>
let g:sleuth_no_filetype_indent_on = 1
<
*g:sleuth_editorconfig_overrides*
The value can be a relative or absolute path, or an empty string to disable
the file without replacing it. On Windows, forward slashes must be used.

This is a solution to the problem of a repository including a poorly
considered .editorconfig that can't easily be changed.
>
let g:sleuth_editorconfig_overrides = {
\ expand('~/bad/repo/.editorconfig'): '.editorconfig.mine'}
<
vim:tw=78:et:ft=help:norl:

0 comments on commit a676a11

Please sign in to comment.