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)
This commit is contained in:
siduck 2023-03-14 06:39:26 +05:30
parent caeec36191
commit 8eaa3666dd
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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,
},