diff options
Diffstat (limited to '')
-rw-r--r-- | home-manager/soispha/config/neovim/nixvim/plugins/luasnip/lua/snippets/all.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/luasnip/lua/snippets/all.lua b/home-manager/soispha/config/neovim/nixvim/plugins/luasnip/lua/snippets/all.lua index 5bb389f0..cfb75a68 100644 --- a/home-manager/soispha/config/neovim/nixvim/plugins/luasnip/lua/snippets/all.lua +++ b/home-manager/soispha/config/neovim/nixvim/plugins/luasnip/lua/snippets/all.lua @@ -40,18 +40,19 @@ local function pair(pair_begin, pair_end, expand_func, ...) }) end -local maybe; +local maybe = { pair = nil }; if vim.bo.filetype == "tex" then - maybe.pair = { - pair("<", ">", neg, char_count_same), - } + maybe.pair = pair("<", ">", neg, char_count_same) end -return { +local output_table = { pair("(", ")", neg, char_count_same), pair("{", "}", neg, char_count_same), pair("[", "]", neg, char_count_same), pair("'", "'", neg, even_count), pair('"', '"', neg, even_count), pair("`", "`", neg, even_count), -} + maybe.pair +} +output_table[#output_table + 1] = maybe.pair + +return output_table |