From d1f835ff1c80a92fe4b112a1cb7fc92b8921275d Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Wed, 16 Oct 2024 17:14:35 +0200 Subject: [PATCH] Update whichkey config to new version --- nvim/.config/nvim/lua/plugins/whichkey.lua | 44 ++++++++++++---------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/whichkey.lua b/nvim/.config/nvim/lua/plugins/whichkey.lua index 5ab420e..45c37d2 100644 --- a/nvim/.config/nvim/lua/plugins/whichkey.lua +++ b/nvim/.config/nvim/lua/plugins/whichkey.lua @@ -15,26 +15,30 @@ return { }, config = function() local wk = require("which-key") - wk.register({ - [""] = { - l = { - name = "+LSP" - }, - x = { - name = "+Trouble" - }, - o = { - name = "+Overseer" - }, - d = { - name = "+Debug" - }, - f = { - name = "+Find" - }, - s = { - name = "+Session" - }, + wk.add({ + { + "d", + group = "Debug" + }, + { + "f", + group = "Find" + }, + { + "l", + group = "LSP" + }, + { + "o", + group = "Overseer" + }, + { + "s", + group = "Session" + }, + { + "x", + group = "Trouble" } }) end