diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-06 23:20:10 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-06 23:20:10 +0200 |
commit | 3403ac4d1c9732d94641a0f6cbc124c01d590af1 (patch) | |
tree | dcc081346fd5f6d92cc6c8643981562ed461969e /.config | |
parent | a6d1318a44b044266e463a174d5ad33e931210b4 (diff) |
nvim: Add a scope snippet for TeX
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/snippets.lua | 16 |
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) } ) ), }) |