From a676a11d8062bbdb49b9946cc8a4b26164058fbb Mon Sep 17 00:00:00 2001 From: Jackie Li Date: Tue, 14 Jun 2022 22:17:34 +0100 Subject: [PATCH] add doc for g:sleuth_editorconfig_overrides --- doc/sleuth.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/sleuth.txt b/doc/sleuth.txt index 7dd2bf3..76020f7 100644 --- a/doc/sleuth.txt +++ b/doc/sleuth.txt @@ -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: