mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-23 13:54:54 +01:00
feat: also download annotations
This commit is contained in:
parent
cdbdd78547
commit
59c850a8a9
1 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,12 @@ local plugin_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h
|
|||
-- vim.fn.system("curl -o " .. path .. 'native' .. ext .. "https://codemp.alemi.dev/lib/lua/latest")
|
||||
-- end
|
||||
local native_path = plugin_dir .. "/lua/codemp/native.so" -- TODO get extension based on platform
|
||||
local download_url = "https://codemp.dev/releases/lua/codemp_native-linux.so" -- TODO get url based on platform
|
||||
local download_url_native = "https://codemp.dev/releases/lua/codemp_native-linux.so" -- TODO get url based on platform
|
||||
print("downloading codemp native lua extension...")
|
||||
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 }):wait() -- TODO can we run this asynchronously?
|
||||
|
||||
local annotations_path = plugin_dir .. "/lua/codemp/annotations.lua"
|
||||
local download_url_annotations = "https://codemp.dev/releases/lua/annotations.lua"
|
||||
print("downloading codemp lua annotations...")
|
||||
vim.system({"curl", "-s", "-o", annotations_path, download_url_annotations }):wait() -- TODO can we run this asynchronously?
|
||||
|
|
Loading…
Reference in a new issue