about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/map.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/config/map.lua')
-rw-r--r--.config/nvim/lua/config/map.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/nvim/lua/config/map.lua b/.config/nvim/lua/config/map.lua
new file mode 100644
index 0000000..24a286f
--- /dev/null
+++ b/.config/nvim/lua/config/map.lua
@@ -0,0 +1,14 @@
+local key = vim.keymap
+
+vim.g.mapleader = " "
+vim.g.localleader = " "
+
+-- movement between splits
+key.set("n", "<C-h>", "<C-w>h")
+key.set("n", "<C-j>", "<C-w>j")
+key.set("n", "<C-k>", "<C-w>k")
+key.set("n", "<C-l>", "<C-w>l")
+key.set("n", "<C-L>", ":vs<CR>")
+key.set("n", "<C-J>", ":sp<CR>")
+
+key.set("n", "<Esc><Esc>", ":nohlsearch<CR>", { silent = true })