.config/nvim/lua/config/maps.lua

changeset 1017
6944e81bc60f
parent 1015
21950cadff6b
child 1020
b1b644e9825d
--- a/.config/nvim/lua/config/maps.lua
+++ b/.config/nvim/lua/config/maps.lua
@@ -13,7 +13,15 @@ map.set("",  "<F4>", ":let v:hlsearch = 
 map.set("i", "<F4>", "<C-O><F4>")
 
 -- cover for search habit
-map.set("c", "<F3>", "<CR>")
+map.set("c", "<F3>", "<CR>", opts)
+
+map.set("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>", opts)
 
-map.set("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>")
+map.set("n", "<C-h>", "<C-w>h", opts)
+map.set("n", "<C-j>", "<C-w>j", opts)
+map.set("n", "<C-k>", "<C-w>k", opts)
+map.set("n", "<C-l>", "<C-w>l", opts)
+map.set("n", "<C-\\>", "<C-w>p", opts)
 
+map.set("n", "gb", "<C-^>", opts)
+map.set("n", "gB", ":ls<CR>:b ", {noremap = true})

mercurial