local status, ts = pcall(require, "nvim-treesitter.configs") if (not status) then return end ts.setup { highlight = { enable = true, disable = {}, }, indent = { enable = true, disable = {}, }, ensure_installed = { "markdown", "markdown_inline", "tsx", "json", "yaml", "css", "scss", "html", "lua", "vim", }, autotag = { enable = true, }, } local parser_config = require "nvim-treesitter.parsers".get_parser_configs() parser_config.tsx.filetype_to_parsername = { "javascript", "typescript.tsx" }