From 28b4ab4ec5fce8ab88a1d312a5eccac0ed63a8ee Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 1 Sep 2022 09:13:59 +0200 Subject: [PATCH 1/2] chore: Rename .cargo/{config => config.toml} Cargo understands this as well, and this way editors pick up the file type correctly. The old file name is also no longer documented in https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure --- .cargo/{config => config.toml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .cargo/{config => config.toml} (100%) diff --git a/.cargo/config b/.cargo/config.toml similarity index 100% rename from .cargo/config rename to .cargo/config.toml From bb04b7270a12af7249b03f0e218ce99f0bac0d65 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 1 Sep 2022 09:18:16 +0200 Subject: [PATCH 2/2] fix(config): Ignore thead for md --- src/config.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/config.rs b/src/config.rs index 0dc3ff21..081f8e66 100644 --- a/src/config.rs +++ b/src/config.rs @@ -235,6 +235,20 @@ impl TypeEngineConfig { ..Default::default() }, }); + patterns + .entry("md".into()) + .or_insert_with(|| GlobEngineConfig { + extend_glob: Vec::new(), + engine: EngineConfig { + dict: Some(DictConfig { + extend_identifiers: maplit::hashmap! { + "thead".into() => "thead".into(), + }, + ..Default::default() + }), + ..Default::default() + }, + }); patterns .entry("vim".into()) .or_insert_with(|| GlobEngineConfig {