return { "nvim-treesitter/nvim-treesitter", lazy = false, -- Keep false to ensure loading for Neo-tree build = ":TSUpdate", config = function() local treesitter = require("nvim-treesitter") treesitter.setup() treesitter.install({ "java", "c", "lua", "vim", "vimdoc", "query", -- "elixir", -- "heex", "markdown", "markdown_inline", "bash", "javascript", "typescript", "html", "toml", "yaml", "todo", }) vim.api.nvim_create_autocmd("FileType", { pattern = { "java", "c", "lua", "vim", "vimdoc", "query", -- "elixir", -- "heex", "markdown", "markdown_inline", "bash", "javascript", "typescript", "html", "toml", "yaml", "todo", }, callback = function() -- syntax highlighting, provided by Neovim vim.treesitter.start() -- folds, provided by Neovim (I don't like folds) -- vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- vim.wo.foldmethod = 'expr' -- indentation, provided by nvim-treesitter vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end, }) end, }