Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--helix-term/src/application.rs2
-rw-r--r--helix-view/src/document.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index 17b58420..cf09aac0 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -401,6 +401,8 @@ impl Application {
// Re-parse any open documents with the new language config.
let lang_loader = self.editor.syn_loader.load();
for document in self.editor.documents.values_mut() {
+ // Re-detect .editorconfig
+ document.detect_editor_config();
document.detect_language(&lang_loader);
let diagnostics = Editor::doc_diagnostics(
&self.editor.language_servers,
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index fb89e2e0..a0a56113 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -1172,7 +1172,7 @@ impl Document {
}
}
- pub(crate) fn detect_editor_config(&mut self) {
+ pub fn detect_editor_config(&mut self) {
if self.config.load().editor_config {
if let Some(path) = self.path.as_ref() {
self.editor_config = EditorConfig::find(path);