Reviewed-on: #1 Co-authored-by: Tomas Mirchev <contact@tomastm.com> Co-committed-by: Tomas Mirchev <contact@tomastm.com>
33 lines
550 B
Lua
33 lines
550 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
build = "TSUpdate",
|
|
main = "nvim-treesitter.configs",
|
|
opts = {
|
|
ensure_installed = {
|
|
"diff",
|
|
"lua",
|
|
"html",
|
|
"css",
|
|
"javascript",
|
|
"typescript",
|
|
"tsx",
|
|
"markdown",
|
|
"markdown_inline",
|
|
},
|
|
auto_install = true,
|
|
highlight = {
|
|
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,
|
|
}
|