From 3403ac4d1c9732d94641a0f6cbc124c01d590af1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 6 Sep 2024 23:20:10 +0200 Subject: nvim: Add a scope snippet for TeX --- .config/nvim/lua/snippets.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/nvim/lua/snippets.lua b/.config/nvim/lua/snippets.lua index db46bf4..185019c 100644 --- a/.config/nvim/lua/snippets.lua +++ b/.config/nvim/lua/snippets.lua @@ -170,7 +170,21 @@ ls.add_snippets('c', { #endif /* !{}_H */ ]], - { i(1), same(1), i(0), same(1), } + { i(1), same(1), i(0), same(1) } + ) + ), +}) + +ls.add_snippets('tex', { + s( + 'scope', + fmt( + [[ + \begin{{{}}} + {} + \end{{{}}} + ]], + { i(1), i(0), same(1) } ) ), }) -- cgit v1.2.3