From 0369a8ad77f22d2ad996d8846b1535d856e53dc3 Mon Sep 17 00:00:00 2001 From: Yura Shatunov <46374280+volucris1@users.noreply.github.com> Date: Sat, 14 May 2022 14:21:17 +0700 Subject: [PATCH] Update mappings.lua Now you can toggle terminal in terminal --- lua/core/mappings.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 379f233..8208076 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -243,9 +243,32 @@ M.telescope = { } M.nvterm = { + t = { + -- toggle in terminal mode + [""] = { + function() + require("nvterm.terminal").toggle "float" + end, + " toggle floating term", + }, + [""] = { + function() + require("nvterm.terminal").toggle "horizontal" + end, + " toggle horizontal term", + }, + + [""] = { + function() + require("nvterm.terminal").toggle "vertical" + end, + " toggle vertical term", + }, + }, + n = { - -- toggle + -- toggle in normal mode [""] = { function() require("nvterm.terminal").toggle "float"