feat: add support for termux environment detection

This commit is contained in:
2024-11-10 16:15:04 -05:00
parent a4479c8d88
commit 50cebdbddd
+10
View File
@@ -7,3 +7,13 @@ require("utils.blinky").setup(vim.g.blinky)
if vim.fn.executable("nvr") == 1 then
vim.env.GIT_EDITOR = "nvr -cc split --remote-wait +'set bufhidden=wipe'"
end
-- Check for termux
local prefix = vim.env.PREFIX
-- Check if prefix contains "com.termux"
if prefix ~= nil then
if prefix:match("com.termux") then
vim.g.useimage = false
end
end