diff --git a/exe/ruby-lsp-doctor b/exe/ruby-lsp-doctor index 0680c733c..0bc944a2c 100755 --- a/exe/ruby-lsp-doctor +++ b/exe/ruby-lsp-doctor @@ -4,6 +4,15 @@ $LOAD_PATH.unshift(File.expand_path("../lib", __dir__)) require "ruby_lsp/internal" +if File.exist?(".index.yml") + begin + config = YAML.parse_file(".index.yml").to_ruby + rescue => e + abort("Error parsing config: #{e.message}") + end + RubyIndexer.configuration.apply_config(config) +end + index = RubyIndexer::Index.new puts "Globbing for indexable files"