Browse Source

[nvim] fix: tikz snippet for tex files

dev
David JULIEN 5 months ago
parent
commit
28d21abbda
  1. 6
      .config/nvim/lua/plugin/luasnip.lua

6
.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}" }),
}),
},

Loading…
Cancel
Save