Skip to content

Commit 152f203

Browse files
committed
fix(math_rA_no_backslash): missing \psi
Note that `wordTrig` must be true, otherwise it'd expand when typing epsilon. closes #36
1 parent 6b5e24b commit 152f203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/luasnip-latex-snippets/math_rA_no_backslash.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ end
3030

3131
local greek_postfix_completions = function()
3232
local re =
33-
"[aA]lpha|[bB]eta|[cC]hi|[dD]elta|[eE]psilon|[gG]amma|[iI]ota|[kK]appa|[lL]ambda|[mM]u|[nN]u|[oO]mega|[pP]hi|[pP]i|[rR]ho|[sS]igma|[tT]au|[tT]heta|[zZ]eta|[eE]ta"
33+
"[aA]lpha|[bB]eta|[cC]hi|[dD]elta|[eE]psilon|[gG]amma|[iI]ota|[kK]appa|[lL]ambda|[mM]u|[nN]u|[oO]mega|[pP]hi|[pP]i|[pP]si|[rR]ho|[sS]igma|[tT]au|[tT]heta|[zZ]eta|[eE]ta"
3434

3535
local build = build_with_priority(postfix_trig, postfix_node, 200)
3636
return vim.tbl_map(build, vim.split(re, "|"))
@@ -51,7 +51,7 @@ function M.retrieve(is_math)
5151
local no_backslash = utils.no_backslash
5252

5353
M.decorator = {
54-
wordTrig = false,
54+
wordTrig = true,
5555
trigEngine = "pattern",
5656
condition = pipe({ is_math, no_backslash }),
5757
}

0 commit comments

Comments
 (0)