diff options
| author | ottjk <joshott16@gmail.com> | 2024-08-23 16:46:45 -0400 |
|---|---|---|
| committer | ottjk <joshott16@gmail.com> | 2024-08-23 16:46:45 -0400 |
| commit | 6c9b28b9594b7322a5c53d72fe9a21c7ad7b7d39 (patch) | |
| tree | a0148c396dcb8dbb128a4c924f3ab0eec09b26ac /nvim/snips/tex/symbols.lua | |
| parent | cf906f832b5cea3ccb09d3536fdc68daa0d37f64 (diff) | |
| download | dotfiles-6c9b28b9594b7322a5c53d72fe9a21c7ad7b7d39.tar.gz dotfiles-6c9b28b9594b7322a5c53d72fe9a21c7ad7b7d39.zip | |
bunch of changes
specific commit
Diffstat (limited to 'nvim/snips/tex/symbols.lua')
| -rw-r--r-- | nvim/snips/tex/symbols.lua | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/nvim/snips/tex/symbols.lua b/nvim/snips/tex/symbols.lua index b8a8559..04d7e78 100644 --- a/nvim/snips/tex/symbols.lua +++ b/nvim/snips/tex/symbols.lua @@ -133,6 +133,18 @@ return { { n.t("\\subseteq") }, { condition = h.in_mathzone } ), + n.s({trig="cq", snippetType="autosnippet"}, + { n.t("\\subset") }, + { condition = h.in_mathzone } + ), + n.s({trig="qq", snippetType="autosnippet"}, + { n.t("\\supset") }, + { condition = h.in_mathzone } + ), + n.s({trig="qc", snippetType="autosnippet"}, + { n.t("\\supset") }, + { condition = h.in_mathzone } + ), n.s({trig="Nn", snippetType="autosnippet"}, { n.t("\\cap") }, { condition = h.in_mathzone } @@ -202,16 +214,32 @@ return { { condition = h.in_mathzone } ), - n.s({trig="mcal", snippetType="autosnippet"}, + n.s({trig=[[([a-zA-Z])(:#|#:)]], wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + n.fmta("\\mathcal{<>}", + { n.f(function(_, parent) return string.upper(parent.captures[1]) end) }), + { condition = h.in_mathzone } + ), + n.s({trig="(:#|#:)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=100}, n.fmta("\\mathcal{<>}", { n.i(1) }), { condition = h.in_mathzone } ), - n.s({trig="mbb", snippetType="autosnippet"}, + + n.s({trig=[[([a-zA-Z])(@#|#@)]], wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + n.fmta("\\mathbb{<>}", + { n.f(function(_, parent) return string.upper(parent.captures[1]) end) }), + { condition = h.in_mathzone } + ), + n.s({trig="1(@#|#@)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=200}, + { n.t("\\1") }, + { condition = h.in_mathzone } + ), + n.s({trig="(@#|#@)", wordTrig=false, trigEngine="ecma", snippetType="autosnippet", priority=100}, n.fmta("\\mathbb{<>}", { n.i(1) }), { condition = h.in_mathzone } ), + n.s({trig="'hb", snippetType="autosnippet"}, { n.t("\\hbar") }, { condition = h.in_mathzone } @@ -368,6 +396,10 @@ return { { n.t("\\oplus") }, { condition = h.in_mathzone } ), + n.s({trig="upp", snippetType="autosnippet"}, + { n.t("\\uplus") }, + { condition = h.in_mathzone } + ), n.s({trig="pm", snippetType="autosnippet"}, { n.t("\\pm") }, { condition = h.in_mathzone } |