From 6c9b28b9594b7322a5c53d72fe9a21c7ad7b7d39 Mon Sep 17 00:00:00 2001 From: ottjk Date: Fri, 23 Aug 2024 16:46:45 -0400 Subject: bunch of changes specific commit --- nvim/snips/tex/expressions.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'nvim/snips/tex/expressions.lua') diff --git a/nvim/snips/tex/expressions.lua b/nvim/snips/tex/expressions.lua index 8c020db..875fbf4 100644 --- a/nvim/snips/tex/expressions.lua +++ b/nvim/snips/tex/expressions.lua @@ -58,6 +58,14 @@ return { { n.t("\\sum") }, { condition = h.in_mathzone } ), + n.s({trig="'bu", snippetType="autosnippet", priority=100}, + { n.t("\\bigcup") }, + { condition = h.in_mathzone } + ), + n.s({trig="'ba", snippetType="autosnippet", priority=100}, + { n.t("\\bigcap") }, + { condition = h.in_mathzone } + ), n.s({trig="od", snippetType="autosnippet", priority=100}, n.fmta("\\od{<>}{<>}", { n.i(1), n.i(2) }), @@ -101,7 +109,7 @@ return { { condition = h.in_mathzone } ), n.s({trig="pf", wordTrig=false, snippetType="autosnippet"}, - { n.t("\\pdiff") }, + { n.t("\\pdiff ") }, { condition = h.in_mathzone } ), n.s({trig = "tii", snippetType="autosnippet"}, @@ -119,6 +127,11 @@ return { { n.d(1, h.get_visual) }), { condition = h.in_text } ), + n.s({trig = "txt", snippetType="autosnippet"}, + n.fmta("\\texttt{<>}", + { n.d(1, h.get_visual) }), + { condition = h.in_text } + ), n.s({trig = "=", snippetType="autosnippet"}, { n.t("\\item ") }, { condition = h.in_itemize * h.line_begin } -- cgit v1.3