From 7ddd394172c0e3c117b8198db86fab3e40f21c00 Mon Sep 17 00:00:00 2001 From: JoakoV3 Date: Fri, 27 Aug 2021 02:50:07 -0300 Subject: [PATCH] Changed mappings to move between windows/terminals with Ctrl+h,j,k,l --- lua/chadrc.lua | 5 +++++ lua/core/mappings.lua | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/lua/chadrc.lua b/lua/chadrc.lua index c8fdfd7..f730f8e 100644 --- a/lua/chadrc.lua +++ b/lua/chadrc.lua @@ -143,6 +143,11 @@ M.mappings.plugin = { bufferline = { next_buffer = "", -- next buffer prev_buffer = "", -- previous buffer + --better window movement + moveLeft = "", + moveRight = "", + moveUp = "", + moveDown = "", }, chadsheet = { default_keys = "dk", diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 6f58bdb..aa941ce 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -129,6 +129,10 @@ M.bufferline = function() map("n", m.next_buffer, ":BufferLineCycleNext ") map("n", m.prev_buffer, ":BufferLineCyclePrev ") + map("n", m.moveLeft, "h") + map("n", m.moveRight, "l") + map("n", m.moveUp, "k") + map("n", m.moveDown, "j") end M.chadsheet = function()