From 1897617c98807ce9dd8eaa1f495a2d49a6166316 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 6 Jun 2023 07:46:27 +0200 Subject: [PATCH] fix(keymaps): terminal show/hide --- lua/lazyvim/config/keymaps.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 2fe86af7..27cd04f5 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -127,19 +127,19 @@ end -- floating terminal local lazyterm = function() Util.float_term(nil, { cwd = Util.get_root() }) end -map("n", "ft", lazyterm, { desc = "Terminal (root dir)" }) +map("n", "ft", lazyterm, { desc = "Terminal (root dir)" }) map("n", "fT", function() Util.float_term() end, { desc = "Terminal (cwd)" }) map("n", "", lazyterm, { desc = "Terminal (root dir)" }) -map("n", "", "", { remap = true, desc = "which_key_ignore" }) +map("n", "", lazyterm, { desc = "which_key_ignore" }) -- 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", '', "close", {desc = "Hide Terminal"}) -map("t", "", "", { remap = true, desc = "which_key_ignore" }) +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", "", "close", { desc = "Hide Terminal" }) +map("t", "", "close", { desc = "which_key_ignore" }) -- windows map("n", "ww", "p", { desc = "Other window", remap = true })