diff --git a/lua/plugins/nvim-treesitter.lua b/lua/plugins/nvim-treesitter.lua index e4e21bd..a818d7c 100644 --- a/lua/plugins/nvim-treesitter.lua +++ b/lua/plugins/nvim-treesitter.lua @@ -1,24 +1,16 @@ return { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", - init = function() - require("nvim-treesitter.configs").setup({ - -- A list of parser names, or "all" - ensure_installed = { - "nix", - "lua", - "vim", - }, + opts = { + ensure_installed = { + "nix", + "lua", + "vim", + }, - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - auto_install = true, - highlight = { - enable = true, - }, - indent = { - enable = true, - }, - }) - end, + sync_install = true, + auto_install = true, + highlight = { enable = true }, + indent = { enable = true }, + }, }