From 4dfa523fd6045ef32573c47390203bfe6f520526 Mon Sep 17 00:00:00 2001 From: Isak Ellmer Date: Wed, 8 Oct 2025 10:53:41 +0200 Subject: [PATCH] Add option to disable editorconfig completely --- plugin/sleuth.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sleuth.vim b/plugin/sleuth.vim index 141845a..c3ac82a 100644 --- a/plugin/sleuth.vim +++ b/plugin/sleuth.vim @@ -268,7 +268,7 @@ endfunction let s:editorconfig_cache = {} function! s:DetectEditorConfig(absolute_path, ...) abort - if empty(a:absolute_path) + if empty(a:absolute_path) || get(g:, 'sleuth_editorconfig_disable', 0) return [{}, ''] endif let root = ''