diff options
author | Soispha <soispha@vhack.eu> | 2023-08-20 00:54:32 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-20 01:01:13 +0200 |
commit | fe1679aa05bb435dcf549f96d991d2d98b27a26f (patch) | |
tree | 8598345d3224254161b7599ef10c8dd1d0b8f056 | |
parent | Feat(hm/conf/neovim/plugins/lsp/ccls): Init (diff) | |
download | nixos-config-fe1679aa05bb435dcf549f96d991d2d98b27a26f.tar.gz nixos-config-fe1679aa05bb435dcf549f96d991d2d98b27a26f.zip |
Fix(hm/conf/neovim/plugins/luasnip): Correct local value in snippet
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 |