add mdx to treesitter

This commit is contained in:
Tomas Mirchev 2025-03-15 15:33:13 +01:00
parent dba44db4d3
commit 30603c5dae

View File

@ -19,6 +19,16 @@ return {
enable = true,
},
indent = { enable = true }
}
},
config = function(_, opts)
require('nvim-treesitter.configs').setup(opts)
-- Add MDX filetype detection
vim.filetype.add({
extension = {
mdx = 'markdown.mdx',
},
})
end,
}