initial MDX support
This commit is contained in:
@@ -7,11 +7,6 @@ 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 = {
|
||||
@@ -92,4 +87,10 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"davidmh/mdx.nvim",
|
||||
config = true,
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user