chore(main/neovim): disable :checkhealth locale warning

This commit is contained in:
termux-pacman-bot
2025-09-05 04:06:01 +00:00
parent c2338fb38b
commit ca022c5c7b
2 changed files with 16 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0, VIM License"
TERMUX_PKG_LICENSE_FILE="LICENSE.txt"
TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000"
TERMUX_PKG_VERSION="0.11.4"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=83cf9543bedab8bec8c11cd50ccd9a4bf1570420a914b9a28f83ad100ca6d524
TERMUX_PKG_AUTO_UPDATE=true

View File

@@ -0,0 +1,15 @@
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua
index 6418d26fba..2b826898cc 100644
--- a/runtime/lua/vim/health/health.lua
+++ b/runtime/lua/vim/health/health.lua
@@ -82,7 +82,9 @@ local function check_config()
})
end
- if vim.v.ctype == 'C' then
+ -- This check isn't meaningful on Android since there is no traditional locale mechanism.
+ -- Disable it to avoid false positives in `:checkhealth`
+ if false then
ok = false
health.error(
'Locale does not support UTF-8. Unicode characters may not display correctly.'