mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 07:24:52 +01:00
fix: double dot in ext
This commit is contained in:
parent
b3bc67cd38
commit
9e469f882f
1 changed files with 4 additions and 4 deletions
|
@ -8,9 +8,9 @@ local platform = string.lower(os_uname.sysname)
|
||||||
if platform == "mac" then platform = "darwin" end
|
if platform == "mac" then platform = "darwin" end
|
||||||
|
|
||||||
local ext = os_uname.sysname
|
local ext = os_uname.sysname
|
||||||
if os_uname.sysname == "Windows" then ext = ".dll"
|
if os_uname.sysname == "Windows" then ext = "dll"
|
||||||
elseif os_uname.sysname == "Mac" then ext = ".dylib"
|
elseif os_uname.sysname == "Mac" then ext = "dylib"
|
||||||
else ext = ".so"
|
else ext = "so"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- -- TODO compare checksum before redownloading
|
-- -- TODO compare checksum before redownloading
|
||||||
|
@ -29,7 +29,7 @@ vim.api.nvim_create_autocmd(
|
||||||
{"ExitPre"},
|
{"ExitPre"},
|
||||||
{
|
{
|
||||||
callback = function (_ev)
|
callback = function (_ev)
|
||||||
vim.system({"sleep", "1", ";", "mv", native_path, replace_native_path}, { detach = true })
|
vim.system({"mv", native_path, replace_native_path}, { detach = true })
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue