docs: made can_merge private (#15138)

This commit is contained in:
Folke Lemaitre 2021-07-19 23:23:28 +02:00 committed by GitHub
parent 4ed2d4fd66
commit 9358aa04c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,8 @@ function vim.tbl_isempty(t)
return next(t) == nil
end
--- we only merge empty tables or tables that are not a list
--@private
local function can_merge(v)
return type(v) == "table" and (vim.tbl_isempty(v) or not vim.tbl_islist(v))
end