arrows move windows and JK move screen
This commit is contained in:
parent
f8e88fa96c
commit
8a89abfc4f
11
init.lua
11
init.lua
@ -56,3 +56,14 @@ vim.api.nvim_set_keymap('n', '<leader>f', ':bnext<CR>', {noremap = true, silent
|
|||||||
|
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
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 })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user