about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/map.lua
diff options
context:
space:
mode:
authorVitor Gonçalves <vitorg@tilde.team>2024-02-03 11:04:08 -0300
committerVitor Gonçalves <vitorg@tilde.team>2024-02-03 11:04:08 -0300
commit8abb5dc6dfcbf67534f9fd521f1576c7e163c6e4 (patch)
treeea35a714bc6c29a792e9fb10cec16d0c879cccb0 /.config/nvim/lua/config/map.lua
parent071793d598df0fcfa5cbdf62ae0f08455cf2b3c6 (diff)
downloaddots-8abb5dc6dfcbf67534f9fd521f1576c7e163c6e4.tar.gz
nvim: major refactor
it's basically the same config but refactored
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 })