diff options
author | Vitor Gonçalves <vitorg@tilde.team> | 2024-02-03 11:04:08 -0300 |
---|---|---|
committer | Vitor Gonçalves <vitorg@tilde.team> | 2024-02-03 11:04:08 -0300 |
commit | 8abb5dc6dfcbf67534f9fd521f1576c7e163c6e4 (patch) | |
tree | ea35a714bc6c29a792e9fb10cec16d0c879cccb0 /.config/nvim/lua/config/map.lua | |
parent | 071793d598df0fcfa5cbdf62ae0f08455cf2b3c6 (diff) | |
download | dots-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.lua | 14 |
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 }) |