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/bindings.lua | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to '.config/nvim/lua/bindings.lua') diff --git a/.config/nvim/lua/bindings.lua b/.config/nvim/lua/bindings.lua index d844ab0..49f2cf9 100644 --- a/.config/nvim/lua/bindings.lua +++ b/.config/nvim/lua/bindings.lua @@ -1,29 +1,5 @@ -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' }, - 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 = '' }) - -vim.keymap.set('n', 'M-;', ':call nerdcommenter#Comment(0,"toggle")', { noremap = true, silent = false }) -vim.keymap.set('n', 'M-x', ':', { noremap = true, silent = false }) +vim.keymap.set('n', '', ':call nerdcommenter#Comment(0,"toggle")', { noremap = true, silent = false }) +vim.keymap.set('n', '', ':', { noremap = true, silent = false }) vim.keymap.set('n', '', ':bprevious', { noremap = true, silent = true }) vim.keymap.set('n', '', ':bnext', { noremap = true, silent = true }) vim.keymap.set('n', '', 'h', { noremap = true, silent = false }) -- cgit v1.2.3