Skip to content

Commit

Permalink
chore: replace deprecated API
Browse files Browse the repository at this point in the history
The parser table has been deprecated for a while.
  • Loading branch information
davidmh committed Feb 22, 2024
1 parent 8815763 commit 61b93f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mdx/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function M.setup()
vim.filetype.add({ extension = { mdx = "mdx" } })

-- Configure treesitter to use the markdown parser for mdx files
require("nvim-treesitter.parsers").filetype_to_parsername.mdx = "markdown"
vim.treesitter.language.register("markdown", "mdx")
end

return M

0 comments on commit 61b93f6

Please sign in to comment.