diff --git a/home/neovim/lua/plugins/treesitter.lua b/home/neovim/lua/plugins/treesitter.lua index 2cb7789..cd96c72 100644 --- a/home/neovim/lua/plugins/treesitter.lua +++ b/home/neovim/lua/plugins/treesitter.lua @@ -2,14 +2,16 @@ return { "nvim-treesitter/nvim-treesitter", dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" }, build = ":TSUpdate", - config = { - ensure_installed = "all", - sync_install = true, - ignore_install = {}, - auto_install = true, - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - }, - } + config = function() + require('nvim-treesitter.configs').setup { + ensure_installed = "all", + sync_install = true, + ignore_install = {}, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + } + end }