add cmd to compile nvchad theme

This commit is contained in:
siduck 2022-11-17 21:32:55 +05:30
parent f77d052d70
commit a894ced767
2 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,10 @@ if fn.empty(fn.glob(install_path)) > 0 then
print "Cloning packer .." print "Cloning packer .."
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path } fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
os.execute("mkdir " .. vim.fn.stdpath "data" .. "/site/pack/packer/start/base46_cache/lua/base46_cache") os.execute(
"mkdir " .. vim.fn.stdpath "data" .. "/site/pack/packer/start/base46_cache/compiled_themes/lua/base46_cache"
)
require("base46").compile() require("base46").compile()
-- install plugins + compile their configs -- install plugins + compile their configs

View File

@ -25,3 +25,9 @@ autocmd("VimEnter", {
vim.cmd "command! -nargs=* -complete=customlist,v:lua.require'packer'.plugin_complete PackerSync lua require('plugins') require('core.utils').packer_sync(<f-args>)" vim.cmd "command! -nargs=* -complete=customlist,v:lua.require'packer'.plugin_complete PackerSync lua require('plugins') require('core.utils').packer_sync(<f-args>)"
end, end,
}) })
local new_cmd = vim.api.nvim_create_user_command
new_cmd("CompileNvTheme", function()
require("base46").compile()
end, {})