Skip to content

Commit e1d9e15

Browse files
authored
add vscode extensions snippets docs (#231)
* feat(Luasnip): add vscode extensions snippets docs * remove old vscode exampleb
1 parent d0d29df commit e1d9e15

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/routes/docs/config/snippets.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ export const meta = {
33
desc: "Manage custom snippets in NvChad"
44
}
55

6-
## Luasnip
6+
## Luasnip
77

8-
NvChad uses `luasnip` plugin for handling snippets, by default it uses `friendly-snippets` plugin which provides snippets for many languages .
8+
NvChad uses `luasnip` plugin for handling snippets, by default it uses `friendly-snippets` plugin which provides snippets for many languages .
99

1010
- But you would want to extend or add your own snippets so read [luasnip docs](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#loaders).
1111

1212
## Globals
1313

1414
These are the globals you can use to include the path of your snippets.
1515

16-
```lua
17-
-- vscode format i.e json files
18-
vim.g.vscode_snippets_path = "your snippets path"
16+
```lua
17+
-- using with vscode extensions. i.e ~/.vscode/extensions/deinsoftware.vitest-snippets-1.8.0
18+
vim.g.vscode_snippets_path = "path to your vscode snippet extension directory"
1919

20-
-- snipmate format
20+
-- snipmate format
2121
vim.g.snipmate_snippets_path = "your snippets path"
2222

23-
-- lua format
23+
-- lua format
2424
vim.g.lua_snippets_path = vim.fn.stdpath "config" .. "/lua/lua_snippets"
2525
```
2626
<br/>

0 commit comments

Comments
 (0)