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:match("com.termux") then
|
||||
vim.g.useimage = false
|
||||
vim.g.is_termux = true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user