feat(logging): vim.log #38906

This commit is contained in:
Yi Ming
2026-05-10 23:03:15 +08:00
committed by GitHub
parent 2dc0efccb0
commit eb79cf5aee
9 changed files with 592 additions and 155 deletions

View File

@@ -11,6 +11,7 @@ for k, v in pairs({
loader = true,
func = true,
F = true,
log = true,
lsp = true,
hl = true,
diagnostic = true,
@@ -171,19 +172,6 @@ function vim.wait(time, callback, interval, fast_only)
end
end
--- @nodoc
vim.log = {
--- @enum vim.log.levels
levels = {
TRACE = 0,
DEBUG = 1,
INFO = 2,
WARN = 3,
ERROR = 4,
OFF = 5,
},
}
local utfs = {
['utf-8'] = true,
['utf-16'] = true,