35 lines
617 B
Lua
35 lines
617 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,
|
|
|
|
}
|
|
|