From 62ea8b0dafbdfa5262a7785e1684904361a1e18e Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 26 Feb 2025 16:59:41 +0000 Subject: [PATCH] initial MDX support --- lua/plugins/treesitter.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 736164e..0385db8 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -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 = {