mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-25 06:44:52 +01:00
feat: add build.lua to auto download native on lazy
This commit is contained in:
parent
a0b7888878
commit
fff083a9fb
1 changed files with 4 additions and 0 deletions
4
lua/codemp/build.lua
Normal file
4
lua/codemp/build.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
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?
|
Loading…
Reference in a new issue