refactor: share language IDs with indentation configuration

This commit is contained in:
Valdemar Lorenzen
2026-10-14 12:11:26 +02:00
parent 6a43fb9e0c
commit 5580d6fbd4
9 changed files with 41 additions and 16 deletions
+1 -1
View File
@@ -8994,7 +8994,7 @@ impl Editor {
let width = if self.language_tab_spaces.is_empty() {
self.tab_spaces
} else {
crate::syntax::language_name(
crate::syntax::language_id(
self.active.path.as_deref(),
self.active.lines.first().map(String::as_str),
)