diff --git a/init.lua b/init.lua index 3bd566b4..c6142390 100644 --- a/init.lua +++ b/init.lua @@ -994,15 +994,12 @@ require('lazy').setup({ { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', - config = function() - ---@diagnostic disable-next-line: missing-fields - require('nvim-treesitter.configs').setup { - ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' }, - auto_install = true, - highlight = { enable = true }, - indent = { enable = true }, - } - end, + opts = { + ensure_installed = { 'bash', 'c', 'css', 'diff', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue' }, + auto_install = true, + highlight = { enable = true }, + indent = { enable = true }, + }, }, -- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the