add cmd to compile nvchad theme
This commit is contained in:
parent
f77d052d70
commit
a894ced767
5
init.lua
5
init.lua
|
@ -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
|
||||||
|
|
|
@ -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, {})
|
||||||
|
|
Loading…
Reference in New Issue