arrows move windows and JK move screen

This commit is contained in:
Paul Trowbridge 2023-04-04 13:53:43 -04:00
parent f8e88fa96c
commit 8a89abfc4f

View File

@ -56,3 +56,14 @@ vim.api.nvim_set_keymap('n', '<leader>f', ':bnext<CR>', {noremap = true, silent
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
-- move the whole page without moving the cursor
vim.api.nvim_set_keymap('n', 'J', '<C-e>', { noremap = true })
vim.api.nvim_set_keymap('n', 'K', '<C-y>', { noremap = true })
-- Resize windows
vim.api.nvim_set_keymap('n', '<Up>', '5<C-w>+', { silent = true })
vim.api.nvim_set_keymap('n', '<Down>', '5<C-w>-', { silent = true })
vim.api.nvim_set_keymap('n', '<Right>', '10<C-w>>', { silent = true })
vim.api.nvim_set_keymap('n', '<Left>', '10<C-w><', { silent = true })