Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix(whichkey): User keybinds not showing in whichkey.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorgmeean committed Aug 18, 2022
1 parent 0aea164 commit 5074f61
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lua/doom/modules/features/whichkey/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ whichkey.configs["which-key.nvim"] = function()
local count = 0
for section_name, _ in pairs(doom.modules) do
for _, module in pairs(doom[section_name]) do
if module.binds then
if module and module.binds then
count = count + 1
vim.defer_fn(function()
-- table.insert(all_keymaps, type(module.binds) == "function" and module.binds() or module.binds)
Expand All @@ -134,6 +134,13 @@ whichkey.configs["which-key.nvim"] = function()
end
end
end

-- Add user keymaps to whichkey user keymaps
keymaps_service.applyKeymaps(
doom.binds,
nil,
{ whichkey_integration }
)
end

return whichkey

0 comments on commit 5074f61

Please sign in to comment.