Uses md ts parser for vimwiki files

This commit is contained in:
Dennis Schoepf 2025-04-02 20:02:37 +02:00
parent a059822369
commit 6c57d1db99
2 changed files with 4 additions and 1 deletions

View file

@ -2,7 +2,7 @@ return {
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons", "jghauser/follow-md-links.nvim" },
opts = {
ft = { "markdown", "vimwiki" },
file_types = { "markdown", "vimwiki" },
completions = { lsp = { enabled = true } },
},
}

View file

@ -94,5 +94,8 @@ return {
},
},
})
local ft_to_parser = require("nvim-treesitter.parsers").filetype_to_parsername
ft_to_parser.vimwiki = "markdown"
end,
}