feat(neovim): extend razor luasnip with html snippets
This commit is contained in:
parent
157a2d5172
commit
5c221b7c3e
15
modules/home-manager/programs/neovim/lua/plugins/luasnip.lua
Normal file
15
modules/home-manager/programs/neovim/lua/plugins/luasnip.lua
Normal 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,
|
||||
}
|
Loading…
Reference in a new issue