diff --git a/runtime/lua/vim/lsp/health.lua b/runtime/lua/vim/lsp/health.lua index d99555537f..4578103261 100644 --- a/runtime/lua/vim/lsp/health.lua +++ b/runtime/lua/vim/lsp/health.lua @@ -198,7 +198,7 @@ local function check_enabled_configs() local v_str --- @type string? if k == 'name' then v_str = nil - elseif k == 'filetypes' or k == 'root_markers' then + elseif k == 'filetypes' or (k == 'root_markers' and type(v[1]) == 'string') then v_str = table.concat(v, ', ') elseif type(v) == 'function' then v_str = func_tostring(v)