From 0f0141f098245da50a5c6d0626d53a25958b0bd7 Mon Sep 17 00:00:00 2001 From: siduck Date: Fri, 28 Jun 2024 21:36:39 +0530 Subject: [PATCH] wrap treesitter hlgroup loaders with pcall #2905 --- lua/nvchad/configs/treesitter.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/nvchad/configs/treesitter.lua b/lua/nvchad/configs/treesitter.lua index 870ac24..e8697b6 100644 --- a/lua/nvchad/configs/treesitter.lua +++ b/lua/nvchad/configs/treesitter.lua @@ -1,5 +1,7 @@ -dofile(vim.g.base46_cache .. "syntax") -dofile(vim.g.base46_cache .. "treesitter") +pcall(function() + dofile(vim.g.base46_cache .. "syntax") + dofile(vim.g.base46_cache .. "treesitter") +end) local options = { ensure_installed = { "lua", "luadoc", "printf", "vim", "vimdoc" },