File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,24 @@ export const meta = {
3
3
desc: " Manage custom snippets in NvChad"
4
4
}
5
5
6
- ## Luasnip
6
+ ## Luasnip
7
7
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 .
9
9
10
10
- 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 ) .
11
11
12
12
## Globals
13
13
14
14
These are the globals you can use to include the path of your snippets.
15
15
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 "
19
19
20
- -- snipmate format
20
+ -- snipmate format
21
21
vim .g .snipmate_snippets_path = " your snippets path"
22
22
23
- -- lua format
23
+ -- lua format
24
24
vim .g .lua_snippets_path = vim .fn .stdpath " config" .. " /lua/lua_snippets"
25
25
```
26
26
<br />
You can’t perform that action at this time.
0 commit comments