Run setup function for treesitter

This commit is contained in:
Jose Carvajal 2025-06-30 20:15:50 -06:00
parent a0bc9ebb7b
commit 5937a93b7c
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ return {
opts = {}, opts = {},
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
config = function() config = function(_, opts)
require('nvim-treesitter').setup(opts)
local ensureInstalled = local ensureInstalled =
{ 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go', 'rust', 'elixir', 'toml' } { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go', 'rust', 'elixir', 'toml' }
local alreadyInstalled = require('nvim-treesitter').get_installed 'parsers' local alreadyInstalled = require('nvim-treesitter').get_installed 'parsers'