Skip to content

Commit

Permalink
feat: add in postfix snippet (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Song-Nop authored Dec 12, 2024
1 parent 511ec2b commit b19810e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/tinymist-query/src/completion/snippet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
]
});

0 comments on commit b19810e

Please sign in to comment.