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 ~= 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
+2
View File
@@ -132,10 +132,12 @@ end
-- Perform setup -- Perform setup
M.setup = function() M.setup = function()
if not vim.g.is_termux then
M.bootstrap() M.bootstrap()
M.ensure_luarocks() M.ensure_luarocks()
M.load_rocks() M.load_rocks()
end end
end
-- Execute the setup function -- Execute the setup function
M.setup() M.setup()