Added faster nvim window navigation keybindings

This commit is contained in:
Ivar Fatland
2023-05-28 14:49:09 +02:00
parent c60eec9126
commit 8befac40f5
+9
View File
@@ -20,6 +20,11 @@ local keymap = {
toggle_file_explorer ='<c-n>', toggle_file_explorer ='<c-n>',
leader_key = ';', leader_key = ';',
move_to_panel_left = '<c-h>',
move_to_panel_down = '<c-j>',
move_to_panel_up = '<c-k>',
move_to_panel_right = '<c-l>',
} }
local theme_with_real_colors = false local theme_with_real_colors = false
@@ -33,6 +38,10 @@ vim.opt.nu = true -- Shows current line number
vim.opt.wrap = false -- Don't wrap the line. Let it go offscreen. vim.opt.wrap = false -- Don't wrap the line. Let it go offscreen.
vim.opt.shiftround = true vim.opt.shiftround = true
vim.opt.expandtab = true vim.opt.expandtab = true
vim.keymap.set('n', keymap.move_to_panel_left, '<c-w>h', {})
vim.keymap.set('n', keymap.move_to_panel_down, '<c-w>j', {})
vim.keymap.set('n', keymap.move_to_panel_up, '<c-w>k', {})
vim.keymap.set('n', keymap.move_to_panel_right, '<c-w>l', {})
-- Will only run the first time nvim launches to install packer -- Will only run the first time nvim launches to install packer
local ensure_packer = function() local ensure_packer = function()