use vim.notify

This commit is contained in:
Michael Chris Lopez committed 2021-10-19 10:02:55 +08:00
1 parent 46acbfddfd
commit c177ac0689
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ local function generate(p, opt)
normal_bg = p.bg_warm
elseif opt.darkness ~= nil then
local error_msg = "Unknown darkness value: " .. vim.inspect(darkness)
vim.api.nvim_echo({ { error_msg, "WarningMsg" } }, true, {})
vim.notify(error_msg, vim.log.levels.WARN)
end
local comment_gui = opt.comment_gui
+1 -1
View File
@@ -9,7 +9,7 @@ local function generate(p, opt)
normal_bg = p.bg_dim
elseif opt.lightness ~= nil then
local error_msg = "Unknown lightness value: " .. vim.inspect(lightness)
vim.api.nvim_echo({ { error_msg, "WarningMsg" } }, true, {})
vim.notify(error_msg, vim.log.levels.WARN)
end
local comment_gui = opt.comment_gui