about summary refs log tree commit diff stats
path: root/.config/nvim/lua/config/map.lua
blob: 24a286fa2779ef0178b5c0fa95c2ece57fc76fd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 })