local config = function() local wk = require 'which-key' wk.setup() wk.register { ['c'] = { name = '[C]ode', _ = 'which_key_ignore' }, ['d'] = { name = '[D]ocument', _ = 'which_key_ignore' }, ['g'] = { name = '[G]it', _ = 'which_key_ignore' }, ['h'] = { name = 'More git', _ = '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 return { 'folke/which-key.nvim', config = config, dependencies = { { 'tpope/vim-sleuth', tag = 'v2.0' }, { 'tpope/vim-surround', tag = 'v2.2' }, }, }