From 6e81da97402596f62c2b96dd748291fb14f7db9e Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 2 Aug 2023 16:37:23 +0200 Subject: [PATCH] feat: fixed treesitter loading --- home/neovim/lua/plugins/treesitter.lua | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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 }