feat(neovim): extend razor luasnip with html snippets

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-13 13:02:34 -03:00
parent 157a2d5172
commit 5c221b7c3e
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -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,
}