use vim.notify

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

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

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