1
0
Fork 0

neovim: Use Lua snippets for rstate

This commit is contained in:
Jeremy Kaplan 2025-02-10 15:32:22 -05:00
commit 321c20de0d
3 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,16 @@
local snippets = {
-- const [show, setShow] = useState(false);
s("rstate", {
t("const ["),
i(1),
t(","),
l(l._1:gsub("^%l", string.upper):gsub("^", "set"), 1),
t("] = useState("),
i(0),
t(");"),
}),
}
local autosnippets = {}
return snippets, autosnippets