mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
4 lines
442 B
Lua
4 lines
442 B
Lua
local plugin_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h") -- got this from https://lazy.folke.io/developers#building
|
|
local native_path = plugin_dir .. "/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
|
|
vim.system({"curl", "-s", "-o", native_path, download_url }) -- TODO can we run this asynchronously?
|