From 562672bbf11040df0c31f16c44dc4c1c05510582 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 20 Nov 2021 17:09:35 +0100 Subject: [PATCH] [nvim] feat: improve snippets exit on the next line --- .config/nvim/lua/plugin/luasnip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugin/luasnip.lua b/.config/nvim/lua/plugin/luasnip.lua index 9531bf0..8e1e5cd 100644 --- a/.config/nvim/lua/plugin/luasnip.lua +++ b/.config/nvim/lua/plugin/luasnip.lua @@ -433,7 +433,7 @@ ls.snippets = { i(1), t({ "" }), d(2, rec_ls, {}), - t({ "", "\\end{itemize}" }), + t({ "", "\\end{itemize}", "" }), }), s("frm", { t({ "\\begin{" }), @@ -448,7 +448,7 @@ ls.snippets = { i(0), t({ "", "\\end{" }), f(copy, 1), - t({ "}" }), + t({ "}", "" }), }), s("rmk", { t({ "\\begin{rmk}" }),