Skip to content

Commit 73d9af8

Browse files
authored
chore(logs): remove unused stuffs (#76)
1 parent 07fbc47 commit 73d9af8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lua/one_monokai/logs.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
local logs = {}
22

33
logs.error = {
4-
msg = "",
5-
msg_displayed = false,
64
---Display error message.
75
---
86
---NOTE: This function receives params that will be passed to `string.format`.
@@ -11,10 +9,8 @@ logs.error = {
119
notify = function(s, ...)
1210
local message = string.format(s, ...)
1311

14-
logs.error.msg = message
15-
1612
vim.schedule(function()
17-
logs.error.msg_displayed = vim.notify_once(message, vim.log.levels.ERROR, {
13+
vim.notify_once(message, vim.log.levels.ERROR, {
1814
title = "One Monokai",
1915
})
2016
end)

lua/one_monokai/themes/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local function set_highlight(groups)
1010
local status_ok, err = pcall(set_hl, 0, name, attrs)
1111

1212
if not status_ok then
13-
logs.error.notify(("themes(%s): %s"):format(name, err), 0)
13+
logs.error.notify("themes(%s): %s", name, err)
1414
end
1515
end
1616
end

0 commit comments

Comments
 (0)