From 59d913dd56b9c01b960b276c3447fe0bd54d6d5c Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 5 Sep 2023 15:29:19 +0200 Subject: up --- .config/nvim/lua/plugs-config/whichkey.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .config/nvim/lua/plugs-config/whichkey.lua (limited to '.config/nvim/lua/plugs-config/whichkey.lua') diff --git a/.config/nvim/lua/plugs-config/whichkey.lua b/.config/nvim/lua/plugs-config/whichkey.lua new file mode 100644 index 0000000..f81b879 --- /dev/null +++ b/.config/nvim/lua/plugs-config/whichkey.lua @@ -0,0 +1,27 @@ +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 = '', }) -- cgit v1.2.3