From d2bc74983380c47e53c10372d7e65eb28c870ffa Mon Sep 17 00:00:00 2001 From: zolinthecow Date: Wed, 13 Nov 2024 03:51:13 +0000 Subject: [PATCH] update whichkey config --- lua/colinzhao/lazy/which-key.lua | 33 ++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/lua/colinzhao/lazy/which-key.lua b/lua/colinzhao/lazy/which-key.lua index 46bf48e4..82308985 100644 --- a/lua/colinzhao/lazy/which-key.lua +++ b/lua/colinzhao/lazy/which-key.lua @@ -1,16 +1,21 @@ -return { -- Useful plugin to show you pending keybinds. +return { 'folke/which-key.nvim', - event = 'VimEnter', -- Sets the loading event to 'VimEnter' - config = function() -- This is the function that runs, AFTER loading - require('which-key').setup() - - -- Document existing key chains - require('which-key').register { - ['c'] = { name = '[C]ode', _ = 'which_key_ignore' }, - ['d'] = { name = '[D]ocument', _ = 'which_key_ignore' }, - ['r'] = { name = '[R]ename', _ = 'which_key_ignore' }, - ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, - ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, - } - end, + event = 'VimEnter', + opts = { + preset = 'modern', + icons = { + keys = { + BS = '󰁮 ', + }, + }, + }, + keys = { + { 'c', group = '[C]ode' }, + { 'd', group = '[D]ebugger' }, + { 'h', group = '[H]arpoon' }, + { 'r', group = '[R]ename' }, + { 's', group = '[S]earch' }, + { 't', group = '[T]rouble' }, + { 'w', group = '[W]orkspace' }, + }, }