diff --git a/modules/home-manager/programs/neovim/lua/plugins/luasnip.lua b/modules/home-manager/programs/neovim/lua/plugins/luasnip.lua new file mode 100644 index 0000000..7827042 --- /dev/null +++ b/modules/home-manager/programs/neovim/lua/plugins/luasnip.lua @@ -0,0 +1,15 @@ +return { + "L3MON4D3/LuaSnip", + config = function(plugin, opts) + -- include the default astronvim config that calls the setup call + require "astronvim.plugins.configs.luasnip" (plugin, opts) + + -- load snippets paths + require("luasnip.loaders.from_lua").lazy_load { + paths = { vim.fn.stdpath "config" .. "/snippets" }, + } + + -- extend 'razor' files with html snippets + require("luasnip").filetype_extend("razor", { "html" }) + end, +}