Luasnip
NvChad uses luasnip
plugin for handling snippets, by default it uses friendly-snippets
plugin which provides snippets for many languages .
- But you would want to extend or add your own snippets so read luasnip docs.
Globals
These are the globals you can use to include the path of your snippets.
-- vscode format i.e json files
vim.g.vscode_snippets_path = "your snippets path"
-- snipmate format
vim.g.snipmate_snippets_path = "your snippets path"
-- lua format
vim.g.lua_snippets_path = vim.fn.stdpath "config" .. "/lua/lua_snippets"
stdpath("config") returns the path of our nvimc config folder