We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 269484c commit da7caaaCopy full SHA for da7caaa
lua/astrocore/init.lua
@@ -232,7 +232,13 @@ function M.which_key_register()
232
if M.which_key_queue then
233
local wk_avail, wk = pcall(require, "which-key")
234
if wk_avail then
235
- wk.add(M.which_key_queue)
+ if type(wk.register) == "function" then
236
+ wk.register(M.which_key_queue)
237
+ elseif type(wk.add) == "function" then
238
+ wk.add(M.which_key_queue)
239
+ else
240
+ vim.notify("The appropriate API for which-key was not found",vim.log.levels.ERROR)
241
+ end
242
M.which_key_queue = nil
243
end
244
0 commit comments