From 8a89abfc4fe10db33f39d09cae5ba56ad93f7a2e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 4 Apr 2023 13:53:43 -0400 Subject: [PATCH] arrows move windows and JK move screen --- init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.lua b/init.lua index dafe0a0..6c7a701 100644 --- a/init.lua +++ b/init.lua @@ -56,3 +56,14 @@ vim.api.nvim_set_keymap('n', 'f', ':bnext', {noremap = true, silent local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, {}) + +-- move the whole page without moving the cursor +vim.api.nvim_set_keymap('n', 'J', '', { noremap = true }) +vim.api.nvim_set_keymap('n', 'K', '', { noremap = true }) + +-- Resize windows +vim.api.nvim_set_keymap('n', '', '5+', { silent = true }) +vim.api.nvim_set_keymap('n', '', '5-', { silent = true }) +vim.api.nvim_set_keymap('n', '', '10>', { silent = true }) +vim.api.nvim_set_keymap('n', '', '10<', { silent = true }) +