diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 379f2335..8208076c 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"