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 = ''