mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-07-01 02:52:17 +02:00
Update: which-key healthcheck notification
This commit is contained in:
10
init.lua
10
init.lua
@@ -39,14 +39,14 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
-- You can also configure plugins after the setup call,
|
-- You can also configure plugins after the setup call,
|
||||||
-- as they will be available in your neovim runtime.
|
-- as they will be available in your neovim runtime.
|
||||||
|
|
||||||
-- Disables which-key healthcheck notifications
|
-- Disables which-key healthcheck notification
|
||||||
do
|
do
|
||||||
local orig_notify = vim.notify
|
local orig_notify = vim.notify
|
||||||
vim.notify = function(msg, ...)
|
vim.notify = function(msg, level, ...)
|
||||||
if type(msg) == 'string' and msg:match 'which%-key' then
|
if type(msg) == 'string' and msg:match 'issues reported with your' and msg:match 'which%-key' then
|
||||||
return -- ignore WhichKey health messages
|
return
|
||||||
end
|
end
|
||||||
return orig_notify(msg, ...)
|
return orig_notify(msg, level, ...)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user