From 49ae2344a18f93c5b4209357e265a2732365ab19 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 3 Jun 2023 10:46:33 +0200 Subject: [PATCH] feat(keymaps): added some useful keymaps for terminals --- lua/lazyvim/config/keymaps.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 56fb2a1b..12101240 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -128,7 +128,14 @@ end -- floating terminal map("n", "ft", function() Util.float_term(nil, { cwd = Util.get_root() }) end, { desc = "Terminal (root dir)" }) map("n", "fT", function() Util.float_term() end, { desc = "Terminal (cwd)" }) + +-- Terminal Mappings map("t", "", "", { desc = "Enter Normal Mode" }) +map("t", "", "wincmd h", { desc = "Go to left window"}) +map("t", "", "wincmd j", { desc = "Go to lower window"}) +map("t", "", "wincmd k", { desc = "Go to upper window"}) +map("t", "", "wincmd l", { desc = "Go to right window"}) +map('t', '', [[]], { desc = "Terminal Window Mappings"}) -- windows map("n", "ww", "p", { desc = "Other window", remap = true })