fix: prevent rock loading on Termux to avoid compatibility issues

This commit is contained in:
2024-11-10 16:18:44 -05:00
parent 50cebdbddd
commit 88d31b6bce
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -15,5 +15,6 @@ local prefix = vim.env.PREFIX
if prefix ~= nil then
if prefix:match("com.termux") then
vim.g.useimage = false
vim.g.is_termux = true
end
end
+5 -3
View File
@@ -132,9 +132,11 @@ end
-- Perform setup
M.setup = function()
M.bootstrap()
M.ensure_luarocks()
M.load_rocks()
if not vim.g.is_termux then
M.bootstrap()
M.ensure_luarocks()
M.load_rocks()
end
end
-- Execute the setup function