return { { "nvim-treesitter/nvim-treesitter", event = { "BufReadPre", "BufNewFile" }, build = ":TSUpdate", config = function() -- import nvim-treesitter plugin local treesitter = require("nvim-treesitter.configs") -- configure treesitter treesitter.setup({ -- ensure these language parsers are installed ensure_installed = { "json", "javascript", "typescript", "tsx", "yaml", "html", "css", "prisma", "markdown", "markdown_inline", "svelte", "graphql", "bash", "lua", "vim", "dockerfile", "gitignore", "php", "latex", }, -- auto install above language parsers auto_install = true, -- enable syntax highlighting highlight = { enable = true, disable = { "latex" } }, -- enable indentation indent = { enable = true }, -- enable autotagging autotag = { enable = true }, }) local parser_config = require("nvim-treesitter.parsers").get_parser_configs() parser_config.blade = { install_info = { url = "https://github.com/EmranMR/tree-sitter-blade", files = { "src/parser.c" }, branch = "main", }, filetype = "blade", } vim.filetype.add({ pattern = { [".*%.blade%.php"] = "blade", }, }) end, }, }