Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add doc for g:sleuth_editorconfig_overrides #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: