initial MDX support

This commit is contained in:
Miguel Palhas
2025-02-26 16:59:41 +00:00
parent 228242647b
commit 62ea8b0daf
+5
View File
@@ -7,6 +7,11 @@ return {
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
-- enable MDX markdown
vim.filetype.add { extension = { mdx = "mdx" } }
local ft_to_parser = require("nvim-treesitter.parsers").filetype_to_parsername
ft_to_parser.mdx = "markdown"
end,
opts = {
ensure_installed = {