avoid using vim.cmd! for running os commands
This commit is contained in:
parent
7cd80a35c6
commit
7303bb2990
1 changed files with 2 additions and 3 deletions
|
@ -4,10 +4,9 @@ M.lazy = function(install_path)
|
||||||
print "Downloading lazy-lock.json file..."
|
print "Downloading lazy-lock.json file..."
|
||||||
|
|
||||||
local config_branch = require("core.utils").load_config().options.nvChad.update_branch
|
local config_branch = require("core.utils").load_config().options.nvChad.update_branch
|
||||||
|
local lazy_local_url = "https://raw.githubusercontent.com/NvChad/extensions/lazy-lock/" .. config_branch .. ".json "
|
||||||
|
|
||||||
vim.cmd(
|
vim.fn.system { "curl", "-o", "lazy-lock.json", lazy_local_url }
|
||||||
"!curl -o lazy-lock.json https://raw.githubusercontent.com/NvChad/extensions/lazy-lock/" .. config_branch .. ".json "
|
|
||||||
)
|
|
||||||
|
|
||||||
print "Bootstrapping lazy.nvim .."
|
print "Bootstrapping lazy.nvim .."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue