From beb0f05bb24305d81018f84cfec02d73cccc447c Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 7 Oct 2021 19:22:24 +0200 Subject: vim cleaned up binds.lua --- .config/nvim/lua/binds.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 3f9c6a6..8d43c03 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -8,6 +8,16 @@ map('', 'Y', 'y$', opts) map('n', '', ':nohl', opts) map('n', 'n', 'nzzzv', opts) map('n', 'N', 'Nzzzv', opts) +map('i', 'kj', '', opts) + +map('i', ',', ',u', opts) +map('i', '.', '.u', opts) +map('i', '[', '[u', opts) +map('i', '!', '!u', opts) +map('i', '?', '?u', opts) + +map('v', '', ":m '>+1gv=gv", opts) +map('v', '', ":m '<-2gv=gv", opts) map('n', 'h', ':wincmd h', opts) map('n', 'j', ':wincmd j', opts) @@ -17,13 +27,6 @@ map('n', 'l', ':wincmd l', opts) map('n', '', ':NvimTreeToggle', opts) map('n', 'n', ':NvimTreeFindFile', opts) -map('i', 'kj', '', opts) -map('i', ',', ',u', opts) -map('i', '.', '.u', opts) -map('i', '[', '[u', opts) -map('i', '!', '!u', opts) -map('i', '?', '?u', opts) - map('n', '', 'Telescope find_files', opts) map('n', 'fg', 'Telescope live_grep', opts) map('n', 'fb', 'Telescope buffers', opts) @@ -38,6 +41,3 @@ map('n', 'xn', 'lua vim.lsp.diagnostic.goto_next()', opts) map('n', 'xN', 'lua vim.lsp.diagnostic.goto_prev()', opts) map('n', 'xx', 'Telescope lsp_code_actions', opts) map('n', 'xX', 'Telescope lsp_range_code_actions', opts) - -map('v', 'J', ":m '>+1gv=gv", { noremap = true }) -map('v', 'K', ":m '<-2gv=gv", { noremap = true }) -- cgit v1.2.3-70-g09d2