Update mappings.lua

Now you can toggle terminal in terminal
This commit is contained in:
Yura Shatunov 2022-05-14 14:21:17 +07:00 committed by siduck
parent 970ddf79e5
commit 0369a8ad77
1 changed files with 24 additions and 1 deletions

View File

@ -243,9 +243,32 @@ M.telescope = {
}
M.nvterm = {
t = {
-- toggle in terminal mode
["<A-i>"] = {
function()
require("nvterm.terminal").toggle "float"
end,
" toggle floating term",
},
["<A-h>"] = {
function()
require("nvterm.terminal").toggle "horizontal"
end,
" toggle horizontal term",
},
["<A-v>"] = {
function()
require("nvterm.terminal").toggle "vertical"
end,
" toggle vertical term",
},
},
n = {
-- toggle
-- toggle in normal mode
["<A-i>"] = {
function()
require("nvterm.terminal").toggle "float"