From 8eaa3666ddd19c26810a918335507e5f02757127 Mon Sep 17 00:00:00 2001 From: siduck Date: Tue, 14 Mar 2023 06:39:26 +0530 Subject: [PATCH] temporarily silence dofile syntax error during bootstrap we need to find a way to fetch base46 first and then rest of the plugins (during bootstrap) --- lua/core/bootstrap.lua | 1 + lua/plugins/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/core/bootstrap.lua b/lua/core/bootstrap.lua index 1582e32..1ebcb81 100644 --- a/lua/core/bootstrap.lua +++ b/lua/core/bootstrap.lua @@ -40,6 +40,7 @@ M.gen_chadrc_template = function() "https://github.com/NvChad/example_config", vim.fn.stdpath "config" .. "/lua/custom", } + print "dont forget to read docs from nvchad.com!" vim.cmd "redraw|echo ''" -- delete .git from that repo diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 3f2031e..8f87589 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -81,7 +81,7 @@ local default_plugins = { return require "plugins.configs.treesitter" end, config = function(_, opts) - dofile(vim.g.base46_cache .. "syntax") + pcall(dofile, vim.g.base46_cache .. "syntax") require("nvim-treesitter.configs").setup(opts) end, },