Skip to content

Commit

Permalink
fix: never hook q #63
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 13, 2021
1 parent 7a1be6f commit 95ae9d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/which-key/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ function M.hook_add(prefix, mode, buf, secret_only)
if mode == "i" and (prefix == "j" or prefix == "k") then
return
end
-- never hook q
if mode == "n" and prefix == "q" then
return
end
-- never hook into select mode
if mode == "s" then
return
Expand Down

0 comments on commit 95ae9d2

Please sign in to comment.