feat(completion): enable loading snippets from config directory and extend mdx filetype

This commit is contained in:
sankalp committed 2025-09-24 10:03:05 +05:45
1 parent 7a21abb1d0
commit 55c775d0ef
1 file changed
+4
+4
View File
@@ -5,9 +5,13 @@ return {
version = '*',
dependencies = { 'rafamadriz/friendly-snippets' },
config = function()
local luasnip = require('luasnip')
require('luasnip.loaders.from_vscode').lazy_load({
paths = { vim.fn.stdpath('config') .. '/snippets' },
})
luasnip.filetype_extend('mdx', { 'markdown' })
end,
},