summaryrefslogtreecommitdiff
path: root/lua/user/keymaps.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:49:15 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:49:15 +0100
commit63204515d77360a51347dd6e0b078e1e931d65af (patch)
treeed78f80ba256f2b53d5924d8683c472b1516311a /lua/user/keymaps.lua
parent4b0d085006724b6f5a1d6db5b980800db44e0e88 (diff)
parente60e3e816a1f9fe8338733734286c3c56e58f944 (diff)
Merge branch 'vgg' into 07-Telescope07-Telescope
Diffstat (limited to 'lua/user/keymaps.lua')
-rw-r--r--lua/user/keymaps.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua
index 28718bb..c7d10c4 100644
--- a/lua/user/keymaps.lua
+++ b/lua/user/keymaps.lua
@@ -6,9 +6,9 @@ local term_opts = { silent = true }
local keymap = vim.api.nvim_set_keymap
--Remap space as leader key
-keymap("", "<Space>", "<Nop>", opts)
-vim.g.mapleader = " "
-vim.g.maplocalleader = " "
+-- keymap("", "<Space>", "<Nop>", opts)
+vim.g.mapleader = ","
+vim.g.maplocalleader = ","
-- Modes
-- normal_mode = "n",
@@ -28,8 +28,8 @@ keymap("n", "<C-l>", "<C-w>l", opts)
keymap("n", "<leader>e", ":Lex 30<cr>", opts)
-- Resize with arrows
-keymap("n", "<C-Up>", ":resize -2<CR>", opts)
-keymap("n", "<C-Down>", ":resize +2<CR>", opts)
+keymap("n", "<C-Up>", ":resize +2<CR>", opts)
+keymap("n", "<C-Down>", ":resize -2<CR>", opts)
keymap("n", "<C-Left>", ":vertical resize -2<CR>", opts)
keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts)
@@ -37,10 +37,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)