20 lines
591 B
Lua
20 lines
591 B
Lua
local opts = { noremap = true, silent = true }
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
map("", "<Space>", "<Nop>", opts)
|
|
vim.g.mapleader = " "
|
|
vim.g.maplocalleader = " "
|
|
|
|
-- Window Navigation without needing <C-w> first
|
|
map("n", "<C-h>", "<C-w>h", opts)
|
|
map("n", "<C-j>", "<C-w>j", opts)
|
|
map("n", "<C-k>", "<C-w>k", opts)
|
|
map("n", "<C-l>", "<C-w>l", opts)
|
|
|
|
-- Resize with C-arrow
|
|
map("n", "<C-Up>", "<cmd>resize -2<CR>", opts)
|
|
map("n", "<C-Down>", "<cmd>resize +2<CR>", opts)
|
|
map("n", "<C-Left>", "<cmd>vertical resize -2<CR>", opts)
|
|
map("n", "<C-Right>", "<cmd>vertical resize +2<CR>", opts)
|
|
|