neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 2422fbdd5f90326b793c8add448b9192e389c181
parent eb5b4b9e57d9affcf8a3a4ce3f2001a6866c94c3
Author: Justin M. Keyes <justinkz@gmail.com>
Date:   Sat, 12 Jul 2025 14:27:51 -0400

fix(health): bad format() call #34904

Problem:
Bad format() call on PUC Lua #34901

    Error: Failed to run healthcheck for "vim.health" plugin. Exception:
    runtime/lua/vim/health/health.lua:89: bad argument #1 to 'format' (string expected, got nil)

Solution:
Avoid passing nil.
Diffstat:
Mruntime/lua/vim/health/health.lua | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua @@ -87,9 +87,9 @@ local function check_config() health.error( 'Locale does not support UTF-8. Unicode characters may not display correctly.' .. ('\n$LANG=%s $LC_ALL=%s $LC_CTYPE=%s'):format( - vim.env.LANG, - vim.env.LC_ALL, - vim.env.LC_CTYPE + vim.env.LANG or '', + vim.env.LC_ALL or '', + vim.env.LC_CTYPE or '' ), { 'If using tmux, try the -u option.',