--- @type TSConfig M = { install_dir = vim.fn.stdpath("data") .. "/site", } vim.api.nvim_create_autocmd("FileType", { callback = function() -- Enable treesitter highlighting and disable regex syntax pcall(vim.treesitter.start) -- Enable treesitter-based indentation vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()" end, }) return M