diff options
author | Joe <rrbo@proton.me> | 2023-09-05 15:29:19 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-05 15:29:19 +0200 |
commit | 59d913dd56b9c01b960b276c3447fe0bd54d6d5c (patch) | |
tree | d91490fe64f97ab7bf069dd464ba8f49426319f8 /.config/nvim/lua/plugs-config/whichkey.lua | |
parent | fuck airline (diff) | |
download | dotfiles-bsd-59d913dd56b9c01b960b276c3447fe0bd54d6d5c.tar.gz dotfiles-bsd-59d913dd56b9c01b960b276c3447fe0bd54d6d5c.tar.bz2 dotfiles-bsd-59d913dd56b9c01b960b276c3447fe0bd54d6d5c.tar.xz dotfiles-bsd-59d913dd56b9c01b960b276c3447fe0bd54d6d5c.tar.zst dotfiles-bsd-59d913dd56b9c01b960b276c3447fe0bd54d6d5c.zip |
up
Diffstat (limited to '.config/nvim/lua/plugs-config/whichkey.lua')
-rw-r--r-- | .config/nvim/lua/plugs-config/whichkey.lua | 27 |
1 files changed, 27 insertions, 0 deletions
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<CR>', 'buffers', noremap = true, silent = true }, + c = { name = '+nerd-commenter' }, + d = { ':bd<CR>', 'close buffer', noremap = true, silent = false }, + e = { ':Files<CR>', 'files', noremap = true, silent = true }, + G = { ':FloatermNew lazygit<CR>', 'lazygit', noremap = true, silent = true }, + h = { ':Startify<CR>', 'startify', noremap = true, silent = true }, + k = { ':w<CR>:bp<CR>:bd #<CR>', 'write and close buffer', noremap = true, silent = false }, + p = { ':<C-u>CocList -A --normal yank<CR>', 'CoC paste', noremap = true, silent = true }, + u = { ':UndotreeShow<CR>', 'undotree', noremap = true, silent = true }, + v = { ':FloatermNew vifm<CR>', 'vifm', noremap = true, silent = true }, + w = { ':w<CR>', 'write buffer', noremap = true, silent = false }, + x = { ':w<CR>:bp<CR>:bd #<CR>', 'write and close buffer', noremap = true, silent = false }, + q = { name = '+coc-fix-current' }, + r = { name = '+coc-rename' }, + f = { + name = 'telescope', + f = { ':Telescope find_files<CR>', 'find files', noremap = true, silent = true }, + }, + g = { + name = 'grep', + a = { ':Ag<CR>', 'the_silver_searcher', noremap = true, silent = true }, + g = { ':Grep<CR>', 'grep', noremap = true, silent = true }, + r = { ':Rg<CR>', 'ripgrep', noremap = true, silent = true }, + }, +}, { prefix = '<leader>', }) |