From 59cb5af26b9f7b9c626bef058ab4e7e8666ff9ec Mon Sep 17 00:00:00 2001 From: Nanderty Date: Fri, 14 Apr 2023 23:59:47 +0200 Subject: Snippets --- lua/Snippets/tex/symbols.lua | 78 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 75 insertions(+), 3 deletions(-) (limited to 'lua/Snippets/tex/symbols.lua') diff --git a/lua/Snippets/tex/symbols.lua b/lua/Snippets/tex/symbols.lua index f0cd088..c2ca1d0 100644 --- a/lua/Snippets/tex/symbols.lua +++ b/lua/Snippets/tex/symbols.lua @@ -2,21 +2,93 @@ local tex = require('Snippets.luasniphelperslatex') local helper = require('Snippets.luasniphelpers') return { + s({ trig = 'del', snippetType = 'autosnippet' }, + { + t('\\delta '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'phi', snippetType = 'autosnippet' }, + { + t('\\phi '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'Phi', snippetType = 'autosnippet' }, + { + t('\\Phi '), + }, + { condition = tex.in_mathzone } + ), s({ trig = 'pi', snippetType = 'autosnippet' }, { - t('\\pi'), + t('\\pi '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'nab', snippetType = 'autosnippet' }, + { + t('\\nabla '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'mu', snippetType = 'autosnippet' }, + { + t('\\mu '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'eps', snippetType = 'autosnippet' }, + { + t('\\epsilon '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = '0mu', snippetType = 'autosnippet' }, + { + t('\\mu_0 '), }, { condition = tex.in_mathzone } ), s({ trig = '0eps', snippetType = 'autosnippet' }, { - t('\\epsilon_0'), + t('\\epsilon_0 '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'cdo', snippetType = 'autosnippet' }, + { + t('\\cdot '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'tim', snippetType = 'autosnippet' }, + { + t('\\times '), }, { condition = tex.in_mathzone } ), s({ trig = 'app', snippetType = 'autosnippet' }, { - t('\\approx'), + t('\\approx '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'leq', snippetType = 'autosnippet' }, + { + t('\\leq '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'geq', snippetType = 'autosnippet' }, + { + t('\\geq '), + }, + { condition = tex.in_mathzone } + ), + s({ trig = 'neq', snippetType = 'autosnippet' }, + { + t('\\neq '), }, { condition = tex.in_mathzone } ), -- cgit v1.2.3