fix: prevent rock loading on Termux to avoid compatibility issues
This commit is contained in:
@@ -15,5 +15,6 @@ local prefix = vim.env.PREFIX
|
|||||||
if prefix ~= nil then
|
if prefix ~= nil then
|
||||||
if prefix:match("com.termux") then
|
if prefix:match("com.termux") then
|
||||||
vim.g.useimage = false
|
vim.g.useimage = false
|
||||||
|
vim.g.is_termux = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -132,9 +132,11 @@ end
|
|||||||
|
|
||||||
-- Perform setup
|
-- Perform setup
|
||||||
M.setup = function()
|
M.setup = function()
|
||||||
M.bootstrap()
|
if not vim.g.is_termux then
|
||||||
M.ensure_luarocks()
|
M.bootstrap()
|
||||||
M.load_rocks()
|
M.ensure_luarocks()
|
||||||
|
M.load_rocks()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Execute the setup function
|
-- Execute the setup function
|
||||||
|
|||||||
Reference in New Issue
Block a user