diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-18 01:31:23 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-18 01:31:23 +0100 |
| commit | e056fe78a29edbe377445c0fcb5854bec122dee8 (patch) | |
| tree | 108f09fbfe301568e2c9bd1fb22df2241fa93412 /lua/user/keymaps.lua | |
| parent | 75177e174bd9d95937e3f4df1766ac28705b1f6a (diff) | |
ccls fixed, bufferline, nvim-tree
Diffstat (limited to 'lua/user/keymaps.lua')
| -rw-r--r-- | lua/user/keymaps.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index be9bb45..48aa005 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -25,6 +25,13 @@ keymap("n", "<C-j>", "<C-w>j", opts) keymap("n", "<C-k>", "<C-w>k", opts) keymap("n", "<C-l>", "<C-w>l", opts) +-- Navigate buffers +keymap("n", "<Tab>", ":bnext<CR>", opts) +keymap("n", "<S-Tab>", ":bprevious<CR>", opts) + +-- NvimTree +keymap("n", "e", ":NvimTreeToggle<CR>", opts) + -- Resize with arrows keymap("n", "<C-Up>", ":resize -2<CR>", opts) keymap("n", "<C-Down>", ":resize +2<CR>", opts) @@ -35,10 +42,6 @@ keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts) keymap("n", "<S-l>", ":bnext<CR>", opts) keymap("n", "<S-h>", ":bprevious<CR>", opts) --- Move text up and down -keymap("n", "<A-j>", "<Esc>:m .+1<CR>==gi", opts) -keymap("n", "<A-k>", "<Esc>:m .-2<CR>==gi", opts) - -- Insert -- -- Press jk fast to enter -- keymap("i", "jk", "<ESC>", opts) @@ -49,8 +52,8 @@ keymap("v", "<", "<gv", opts) keymap("v", ">", ">gv", opts) -- Move text up and down -keymap("v", "<A-j>", ":m .+1<CR>==", opts) -keymap("v", "<A-k>", ":m .-2<CR>==", opts) +keymap("v", "<S-j>", "<Esc>:m .+1<CR>==gi", opts) +keymap("v", "<S-k>", "<Esc>:m .-2<CR>==gi", opts) keymap("v", "p", '"_dP', opts) -- Visual Block -- |
