diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-07 19:22:24 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-07 19:22:24 +0200 |
commit | beb0f05bb24305d81018f84cfec02d73cccc447c (patch) | |
tree | fbab2e68ac3d25129afdd179c4db87278237cf09 /.config/nvim/lua/binds.lua | |
parent | bb4609eb9bbc3b66769c5b80c1d887b04b98656b (diff) |
vim cleaned up binds.lua
Diffstat (limited to '.config/nvim/lua/binds.lua')
-rw-r--r-- | .config/nvim/lua/binds.lua | 20 |
1 files 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', '<C-L>', ':nohl<CR><C-L>', opts) map('n', 'n', 'nzzzv', opts) map('n', 'N', 'Nzzzv', opts) +map('i', 'kj', '<Esc>', opts) + +map('i', ',', ',<c-g>u', opts) +map('i', '.', '.<c-g>u', opts) +map('i', '[', '[<c-g>u', opts) +map('i', '!', '!<c-g>u', opts) +map('i', '?', '?<c-g>u', opts) + +map('v', '<A-j>', ":m '>+1<CR>gv=gv", opts) +map('v', '<A-k>', ":m '<-2<CR>gv=gv", opts) map('n', '<leader>h', ':wincmd h<CR>', opts) map('n', '<leader>j', ':wincmd j<CR>', opts) @@ -17,13 +27,6 @@ map('n', '<leader>l', ':wincmd l<CR>', opts) map('n', '<C-n>', ':NvimTreeToggle<CR>', opts) map('n', '<leader>n', ':NvimTreeFindFile<CR>', opts) -map('i', 'kj', '<Esc>', opts) -map('i', ',', ',<c-g>u', opts) -map('i', '.', '.<c-g>u', opts) -map('i', '[', '[<c-g>u', opts) -map('i', '!', '!<c-g>u', opts) -map('i', '?', '?<c-g>u', opts) - map('n', '<C-p>', '<cmd>Telescope find_files<cr>', opts) map('n', '<leader>fg', '<cmd>Telescope live_grep<cr>', opts) map('n', '<leader>fb', '<cmd>Telescope buffers<cr>', opts) @@ -38,6 +41,3 @@ map('n', '<leader>xn', '<cmd>lua vim.lsp.diagnostic.goto_next()<cr>', opts) map('n', '<leader>xN', '<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>', opts) map('n', '<leader>xx', '<cmd>Telescope lsp_code_actions<cr>', opts) map('n', '<leader>xX', '<cmd>Telescope lsp_range_code_actions<cr>', opts) - -map('v', 'J', ":m '>+1<CR>gv=gv", { noremap = true }) -map('v', 'K', ":m '<-2<CR>gv=gv", { noremap = true }) |