chore: print download url

This commit is contained in:
əlemi 2024-09-10 16:23:01 +02:00
parent 9e469f882f
commit e852ba6e79
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -21,7 +21,7 @@ end
local native_path = plugin_dir .. "/lua/codemp/new-native." .. ext local native_path = plugin_dir .. "/lua/codemp/new-native." .. ext
local replace_native_path = plugin_dir .. "/lua/codemp/native." .. ext local replace_native_path = plugin_dir .. "/lua/codemp/native." .. ext
local download_url_native = string.format("https://code.mp/releases/lua/codemp-lua-%s-%s.%s", arch, platform, ext) local download_url_native = string.format("https://code.mp/releases/lua/codemp-lua-%s-%s.%s", arch, platform, ext)
print("downloading codemp native lua extension...") print("downloading codemp native lua extension from '" .. download_url_native .. "' ...")
vim.system({"curl", "-s", "-o", native_path, download_url_native }):wait() -- TODO can we run this asynchronously? vim.system({"curl", "-s", "-o", native_path, download_url_native }):wait() -- TODO can we run this asynchronously?
print("downloaded! exit nvim to reload library") print("downloaded! exit nvim to reload library")