/ nvim / lua / plugins / treesitter.lua
treesitter.lua
 1  --- Treesitter: syntax and textobjects.
 2  return {
 3    specs = {
 4      { src = 'https://github.com/nvim-treesitter/nvim-treesitter', name = 'nvim-treesitter' },
 5    },
 6    config = function()
 7      local ts = require('nvim-treesitter.configs')
 8      if type(ts) == 'table' and ts.setup then
 9        ts.setup({
10          ensure_installed = {},
11          auto_install = true,
12          highlight = { enable = true },
13        })
14      end
15    end,
16  }