mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-28 05:32:35 +00:00
chore(main/neovim): disable :checkhealth locale warning
This commit is contained in:
@@ -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
|
||||
|
||||
15
packages/neovim/disable-checkhealth-locale-warning.patch
Normal file
15
packages/neovim/disable-checkhealth-locale-warning.patch
Normal 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.'
|
||||
Reference in New Issue
Block a user