-- -- 10-treesitter.lua -- -- * Installs treesitter parsers. -- * Creates an autocommand to start treesitter automatically. -- require("nvim-treesitter").install({ "bash", "diff", "gitcommit", "git_rebase", "ini", "json", "lua", "python", "readline", "vim", "vimdoc", }) vim.api.nvim_create_autocmd("FileType", { desc = "Start treesitter", group = vim.g.dotfiles.augroup, callback = function(ev) local parser = vim.treesitter.get_parser(ev.buf) if not parser then return end vim.treesitter.start(ev.buf) end, })