Skip to content

Commit

Permalink
fix(which-key): config option modes has been deprecated (ayamir#1326)
Browse files Browse the repository at this point in the history
This is a follow-up fix for which-key's v3 rewrite. It simply restores the
behaviors to match v2's default, so there shouldn't be any explicit changes.

(Now the user can use which-key in visual/selection mode without the annoying
box that distracts attention, which is superb 🥳)

Signed-off-by: Jint-lzxy <50296129+Jint-lzxy@users.noreply.github.com>
  • Loading branch information
Jint-lzxy authored and MiliAxe committed Aug 4, 2024
1 parent 808a406 commit 3c32651
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lua/modules/configs/tool/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ return function()
require("modules.utils").load_plugin("which-key", {
preset = "classic",
delay = vim.o.timeoutlen,
modes = {
n = true,
i = true,
x = false,
s = false,
o = false,
t = false,
c = false,
triggers = {
{ "<auto>", mode = "nixso" },
},
plugins = {
marks = true,
Expand Down

0 comments on commit 3c32651

Please sign in to comment.