Remesh snippets for VS Code.
- cd into you the
.vscode
directory in your project,mkdir .vscode
if this folder does not exists. wget https://gist.githubusercontent.com/undoZen/d104b2c88086f90165c438b61ef7c99b/raw/typescript.code-snippets
ctrl/cmd + shift + p
run Configure User Snippets
, edit your typescript.json
files, copy the file into it.
You can use LuaSnip to load VSCode format snippets.
copy typescript.code-snippets
to snippets/remesh.json
under your nvim config path, then add a snippets/package.json
file to load this snippets config file:
{
"name": "my-custom-snippets",
"contributes": {
"snippets": [
{
"language": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"path": "./remesh.json"
}
]
}
}
then in your init.lua, add
require("luasnip.loaders.from_vscode").lazy_load() -- this load default luasnip snippets config
require("luasnip.loaders.from_vscode").load({paths = "./snippets"})