We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f053490 commit 5793dc3Copy full SHA for 5793dc3
plugin/sleuth.vim
@@ -481,6 +481,12 @@ function! s:DetectDeclared() abort
481
let detected.path = s:Slash(call(pre . 'Real', [detected.path]))
482
endif
483
484
+ try
485
+ if len(detected.path) && exists('*ExcludeBufferFromDiscovery') && !empty(ExcludeBufferFromDiscovery(detected.path, 'sleuth'))
486
+ let detected.path = ''
487
+ endif
488
+ catch
489
+ endtry
490
let [detected.editorconfig, detected.root] = s:DetectEditorConfig(detected.path)
491
call extend(detected.declared, s:EditorConfigToOptions(detected.editorconfig))
492
call extend(detected.declared, s:ModelineOptions())
0 commit comments