---@module 'lazy' ---@type LazySpec return { { 'nvim-treesitter/nvim-treesitter', -- highlight, edit, and navigate code build = ':TSUpdate', lazy = false, config = function() -- Pre-install a few languages we're (very) likely going to use require('nvim-treesitter').install({ 'c', 'make', 'bash', 'gitignore', 'editorconfig', 'ini', 'json', 'yaml', }) Autocmd('FileType', { pattern = require('nvim-treesitter').get_available(), callback = function(ft) require('nvim-treesitter').install(ft.match) pcall(vim.treesitter.start) end }) end, } }