refactor: fix luals type warnings

This commit is contained in:
dundargoc
2024-05-25 20:35:37 +02:00
committed by dundargoc
parent f70af5c3ca
commit 6e8a728e3d
12 changed files with 62 additions and 60 deletions

View File

@@ -65,9 +65,7 @@ local function notify(msg)
if #notifications == 0 then
vim.schedule(function()
if #notifications > 1 then
vim.notify(
('TOhtml: %s (+ %d more warnings)'):format(notifications[1], tostring(#notifications - 1))
)
vim.notify(('TOhtml: %s (+ %d more warnings)'):format(notifications[1], #notifications - 1))
elseif #notifications == 1 then
vim.notify('TOhtml: ' .. notifications[1])
end