use vim.notify
This commit is contained in:
@@ -9,7 +9,7 @@ local function generate(p, opt)
|
|||||||
normal_bg = p.bg_warm
|
normal_bg = p.bg_warm
|
||||||
elseif opt.darkness ~= nil then
|
elseif opt.darkness ~= nil then
|
||||||
local error_msg = "Unknown darkness value: " .. vim.inspect(darkness)
|
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
|
end
|
||||||
|
|
||||||
local comment_gui = opt.comment_gui
|
local comment_gui = opt.comment_gui
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ local function generate(p, opt)
|
|||||||
normal_bg = p.bg_dim
|
normal_bg = p.bg_dim
|
||||||
elseif opt.lightness ~= nil then
|
elseif opt.lightness ~= nil then
|
||||||
local error_msg = "Unknown lightness value: " .. vim.inspect(lightness)
|
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
|
end
|
||||||
|
|
||||||
local comment_gui = opt.comment_gui
|
local comment_gui = opt.comment_gui
|
||||||
|
|||||||
Reference in New Issue
Block a user