fix: update treesitter config to use setup function

This commit is contained in:
ralvescosta 2026-01-25 10:29:41 -03:00
parent 1add6760cf
commit 75a73ea4ff
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ return {
{ -- Highlight, edit, and navigate code { -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate', build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts config = function(_, opts)
require('nvim-treesitter.config').setup(opts)
end,
opts = { opts = {
ensure_installed = { ensure_installed = {
'bash', 'bash',