mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-07-01 01:32: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,
|
||||
-- as they will be available in your neovim runtime.
|
||||
|
||||
-- Disables which-key healthcheck notifications
|
||||
-- Disables which-key healthcheck notification
|
||||
do
|
||||
local orig_notify = vim.notify
|
||||
vim.notify = function(msg, ...)
|
||||
if type(msg) == 'string' and msg:match 'which%-key' then
|
||||
return -- ignore WhichKey health messages
|
||||
vim.notify = function(msg, level, ...)
|
||||
if type(msg) == 'string' and msg:match 'issues reported with your' and msg:match 'which%-key' then
|
||||
return
|
||||
end
|
||||
return orig_notify(msg, ...)
|
||||
return orig_notify(msg, level, ...)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user