Como instalar soporte a mdx en lazyvim
- Hacemos:
cd .config/nvim
Vamos a lua/config/ y creamos el archivo treesitter.lua y ponemos en el:
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "markdown" })
vim.treesitter.language.register("markdown", "mdx")
end
end,
},
}
Una vez hecho eso, vamos a config/options y agreagamos :
vim.filetype.add({
extension = {
mdx = "mdx",
},
})
Fin.