yes there's a bit of java in my nvim config why do you ask?
This commit is contained in:
40
lua/snippets/openscad.lua
Normal file
40
lua/snippets/openscad.lua
Normal file
@ -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(" ]);")
|
||||
}),
|
||||
}
|
Reference in New Issue
Block a user