local wk = require("which-key") wk.register({ b = { ':Buffers', 'buffers', noremap = true, silent = true }, c = { name = '+nerd-commenter' }, d = { ':bd', 'close buffer', noremap = true, silent = false }, e = { ':Files', 'files', noremap = true, silent = true }, G = { ':FloatermNew lazygit', 'lazygit', noremap = true, silent = true }, h = { ':Startify', 'startify', noremap = true, silent = true }, k = { ':w:bp:bd #', 'write and close buffer', noremap = true, silent = false }, p = { ':CocList -A --normal yank', 'CoC paste', noremap = true, silent = true }, u = { ':UndotreeShow', 'undotree', noremap = true, silent = true }, v = { ':FloatermNew vifm', 'vifm', noremap = true, silent = true }, w = { ':w', 'write buffer', noremap = true, silent = false }, x = { ':w:bp:bd #', 'write and close buffer', noremap = true, silent = false }, q = { name = '+coc-fix-current' }, r = { name = '+coc-rename' }, f = { name = 'telescope', f = { ':Telescope find_files', 'find files', noremap = true, silent = true }, }, g = { name = 'grep', a = { ':Ag', 'the_silver_searcher', noremap = true, silent = true }, g = { ':Grep', 'grep', noremap = true, silent = true }, r = { ':Rg', 'ripgrep', noremap = true, silent = true }, }, }, { prefix = '', })