From c489d393695e90d424f9ae51e35c4d42358e6a71 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 9 Aug 2024 02:45:31 -0400 Subject: yes there's a bit of java in my nvim config why do you ask? --- lua/snippets/openscad.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lua/snippets/openscad.lua (limited to 'lua/snippets/openscad.lua') diff --git a/lua/snippets/openscad.lua b/lua/snippets/openscad.lua new file mode 100644 index 0000000..c430f2d --- /dev/null +++ b/lua/snippets/openscad.lua @@ -0,0 +1,40 @@ +require('core.snippets.shorthands') + +return { + -- translate snippet + s("t", { + t("translate([ "), + i(1, "0"), + t(", "), + i(2, "0"), + t(", "), + i(3, "0"), + t({ " ]) {", "\t" }), + i(0), + t({ "", "}" }) + }), + + -- rotate snippet + s("r", { + t("rotate([ "), + i(1, "0"), + t(", "), + i(2, "0"), + t(", "), + i(3, "0"), + t({ " ]) {", "\t" }), + i(0), + t({ "", "}" }) + }), + + -- cube snippet + s("c", { + t("cube([ "), + i(1, "0"), + t(", "), + i(2, "0"), + t(", "), + i(3, "0"), + t(" ]);") + }), +} -- cgit v1.2.1