summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/snippets.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-06 23:20:10 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-06 23:20:10 +0200
commit3403ac4d1c9732d94641a0f6cbc124c01d590af1 (patch)
treedcc081346fd5f6d92cc6c8643981562ed461969e /.config/nvim/lua/snippets.lua
parenta6d1318a44b044266e463a174d5ad33e931210b4 (diff)
nvim: Add a scope snippet for TeX
Diffstat (limited to '.config/nvim/lua/snippets.lua')
-rw-r--r--.config/nvim/lua/snippets.lua16
1 files changed, 15 insertions, 1 deletions
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) }
)
),
})