diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/bindings.lua | 28 |
1 files changed, 2 insertions, 26 deletions
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<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' }, - 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>' }) - -vim.keymap.set('n', 'M-;', ':call nerdcommenter#Comment(0,"toggle")<CR>', { noremap = true, silent = false }) -vim.keymap.set('n', 'M-x', ':', { noremap = true, silent = false }) +vim.keymap.set('n', '<M-;>', ':call nerdcommenter#Comment(0,"toggle")<CR>', { noremap = true, silent = false }) +vim.keymap.set('n', '<M-x>', ':', { noremap = true, silent = false }) vim.keymap.set('n', '<M-k>', ':bprevious<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<M-j>', ':bnext<CR>', { noremap = true, silent = true }) vim.keymap.set('n', '<C-h>', '<C-w>h', { noremap = true, silent = false }) |