aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/snippet.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-lsp/src/snippet.rs b/helix-lsp/src/snippet.rs
index 5bfe9657..a11ff60f 100644
--- a/helix-lsp/src/snippet.rs
+++ b/helix-lsp/src/snippet.rs
@@ -388,6 +388,12 @@ mod parser {
default: None,
regex: None,
}),
+ // ${var}
+ map(seq!("${", var(), "}",), |values| SnippetElement::Variable {
+ name: values.1,
+ default: None,
+ regex: None,
+ }),
// ${var:default}
map(
seq!(