Skip to content

Commit

Permalink
fix(which-key): config option modes has been deprecated
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 <[email protected]>
  • Loading branch information
Jint-lzxy committed Jul 19, 2024
1 parent 884f64b commit be3637d
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 be3637d

Please sign in to comment.