diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index ce6fbd2..e173353 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -28,14 +28,18 @@ return { "TSUpdate", "TSUpdateSync", }, - -- build = function() - -- local status_ok, ts = pcall(require, "nvim-treesitter.install") - -- if not status_ok then - -- return - -- end - -- ts.update({ with_sync = true })() - -- end, + build = function() + local status_ok, ts = pcall(require, "nvim-treesitter.install") + if not status_ok then + return + end + ts.update({ with_sync = true })() + end, config = function() + local status_ok, _ = pcall(require, "nvim-treesitter") + if not status_ok then + return + end require("user.treesitter") end, },