feat: add in postfix snippet (#963)

This commit is contained in:
Yifan Song 2024-12-12 08:01:55 +01:00 committed by GitHub
parent 511ec2b5a8
commit b19810ea6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -635,5 +635,14 @@ pub static DEFAULT_POSTFIX_SNIPPET: LazyLock<Vec<PostfixSnippet>> = LazyLock::ne
description: "wrap as let expression".into(),
parsed_snippet: OnceLock::new(),
},
PostfixSnippet {
scope: PostfixSnippetScope::Value,
mode: eco_vec![InterpretMode::Code, InterpretMode::Markup],
label: "in".into(),
label_detail: Some(".in".into()),
snippet: "${_} in ${node}".into(),
description: "wrap with in expression".into(),
parsed_snippet: OnceLock::new(),
},
]
});