fix packer bootstrapping not working
This commit is contained in:
parent
76f0c9bc6f
commit
3616f417e7
2 changed files with 5 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -16,10 +16,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|||
|
||||
os.execute("mkdir -p " .. vim.fn.stdpath "data" .. "/site/pack/base46_cache/start/compiled_themes/lua/base46_cache/")
|
||||
|
||||
require("base46").compile()
|
||||
|
||||
-- install plugins + compile their configs
|
||||
vim.cmd "packadd packer.nvim"
|
||||
|
||||
require "plugins"
|
||||
vim.cmd "PackerSync"
|
||||
|
||||
|
@ -27,6 +26,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "PackerComplete",
|
||||
callback = function()
|
||||
require("base46").compile()
|
||||
require("base46").load_all_highlights()
|
||||
|
||||
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
|
||||
require("packer").loader "nvim-treesitter"
|
||||
end,
|
||||
|
|
|
@ -29,7 +29,7 @@ local plugins = {
|
|||
["NvChad/base46"] = {
|
||||
branch = "dev",
|
||||
config = function()
|
||||
require "base46_cache.defaults"
|
||||
pcall(require, "base46_cache.defaults")
|
||||
end,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue