feat: configure spaces on Tab per language

This commit is contained in:
Valdemar Lorenzen
2026-10-14 12:02:19 +02:00
parent 86718221c4
commit 6a43fb9e0c
10 changed files with 200 additions and 8 deletions
+4
View File
@@ -13,6 +13,10 @@ pub(crate) fn is_markdown_path(path: &Path) -> bool {
languages::detect(Some(path), None).is_some_and(|syntax| syntax.name == "Markdown")
}
pub(crate) fn language_name(path: Option<&Path>, first_line: Option<&str>) -> Option<&'static str> {
languages::detect(path, first_line).map(|syntax| syntax.name)
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SyntaxKind {
Comment,