diff options
| author | ottjk <joshott16@gmail.com> | 2024-03-19 04:39:41 -0400 |
|---|---|---|
| committer | ottjk <joshott16@gmail.com> | 2024-03-19 04:39:41 -0400 |
| commit | 5ed3c77c0bc3741be2dc8896fe3947b1972c0144 (patch) | |
| tree | 8c0d0ead566227cec82a0f3669bed0c7535fe405 /nvim/snips | |
| parent | 313f7738fea3ab0d7f477c8c760037749ea7b735 (diff) | |
| download | dotfiles-5ed3c77c0bc3741be2dc8896fe3947b1972c0144.tar.gz dotfiles-5ed3c77c0bc3741be2dc8896fe3947b1972c0144.zip | |
couple niceties
Diffstat (limited to 'nvim/snips')
| -rw-r--r-- | nvim/snips/tex/symbols.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nvim/snips/tex/symbols.lua b/nvim/snips/tex/symbols.lua index 35d0575..ab63521 100644 --- a/nvim/snips/tex/symbols.lua +++ b/nvim/snips/tex/symbols.lua @@ -188,6 +188,18 @@ return { { condition = h.in_mathzone } ), + n.s({trig="'ti", regTrig=true, snippetType="autosnippet", priority=100}, + n.fmta("\\tilde{<>}", + { n.i(1) }), + { condition = h.in_mathzone } + ), + n.s({trig=[[(\\[a-zA-Z]+|[A-Za-z0-9]|\\[a-z]+\{\\?[A-Za-z0-9]+\})'ti]], + wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + n.fmta("\\tilde{<>}", + { n.f(function(_, parent) return parent.captures[1] end) }), + { condition = h.in_mathzone } + ), + n.s({trig="mcal", snippetType="autosnippet"}, n.fmta("\\mathcal{<>}", { n.i(1) }), @@ -330,6 +342,10 @@ return { { n.t("\\xi") }, { condition = h.in_mathzone } ), + n.s({trig="'ka", snippetType="autosnippet"}, + { n.t("\\kappa") }, + { condition = h.in_mathzone } + ), n.s({trig="'ci", snippetType="autosnippet"}, { n.t("\\circ") }, { condition = h.in_mathzone } |