neovim: Start react snippet collection
This commit is contained in:
parent
bd4b979fb7
commit
8205c6a269
2 changed files with 4 additions and 0 deletions
|
|
@ -579,6 +579,8 @@ return {
|
|||
init = function()
|
||||
local luasnip = require('luasnip')
|
||||
|
||||
luasnip.filetype_extend("typescriptreact", { "react" })
|
||||
|
||||
-- Put snippets in ./snippets/<filetype>.snippets
|
||||
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||
|
||||
|
|
|
|||
2
neovim/snippets/react.snippets
Normal file
2
neovim/snippets/react.snippets
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
snippet rstate const [get, set] = useState(s);
|
||||
const [$1, $2] = useState($0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue