From 7d6047e7434a0872e6d7a4b06a750f5a3e1c679c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 23 Aug 2022 08:25:12 -0500 Subject: [PATCH] fix(config): Don't correct windo in vim Fixes #539 --- src/config.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/config.rs b/src/config.rs index f67779a..016cca7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -193,6 +193,34 @@ impl TypeEngineConfig { ..Default::default() }, }); + patterns + .entry("vim".into()) + .or_insert_with(|| GlobEngineConfig { + extend_glob: Vec::new(), + engine: EngineConfig { + dict: Some(DictConfig { + extend_identifiers: maplit::hashmap! { + "windo".into() => "windo".into(), + }, + ..Default::default() + }), + ..Default::default() + }, + }); + patterns + .entry("vimscript".into()) + .or_insert_with(|| GlobEngineConfig { + extend_glob: Vec::new(), + engine: EngineConfig { + dict: Some(DictConfig { + extend_identifiers: maplit::hashmap! { + "windo".into() => "windo".into(), + }, + ..Default::default() + }), + ..Default::default() + }, + }); patterns .entry("rust".into()) .or_insert_with(|| GlobEngineConfig {