From 28d21abbdaec76a053add29ecfbc94f2eab7348e Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Mon, 6 Dec 2021 00:22:28 +0100 Subject: [PATCH] [nvim] fix: tikz snippet for tex files --- .config/nvim/lua/plugin/luasnip.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugin/luasnip.lua b/.config/nvim/lua/plugin/luasnip.lua index 4c244ab..9eb915a 100644 --- a/.config/nvim/lua/plugin/luasnip.lua +++ b/.config/nvim/lua/plugin/luasnip.lua @@ -467,10 +467,10 @@ ls.snippets = { t({ "}", "" }), }), s("tikz", { - t({ "\begin{center}" }), - t({ "\t\\begin{tikzpicture}[main/.style = {draw,circle}]", "\tt" }), + t({ "\\begin{center}" }), + t({ "", "\t\\begin{tikzpicture}[main/.style = {draw,circle}]", "\t\t" }), i(1), - t({ "\t\\end{tikzpicture}", "\\end{center}" }), + t({ "", "\t\\end{tikzpicture}", "\\end{center}" }), }), },