Skip to content

Commit

Permalink
fix: always map <leader>, even without register
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 28, 2021
1 parent 39a0701 commit 512631c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/which-key/init.lua
Expand Up @@ -11,6 +11,8 @@ local M = {}
function M.setup(options)
config.setup(options)
Plugin.setup()
M.register({}, { prefix = "<leader>", mode = "n" })
M.register({}, { prefix = "<leader>", mode = "v" })
end

function M.show(keys, opts)
Expand Down

0 comments on commit 512631c

Please sign in to comment.