mirror of
https://github.com/akr2002/nv.git
synced 2024-11-09 10:39:44 +00:00
add toggleterm keymaps
This commit is contained in:
parent
a33f74107c
commit
f003d2dcab
1 changed files with 37 additions and 2 deletions
|
@ -50,9 +50,44 @@
|
||||||
action = "+code";
|
action = "+code";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = ["n" "v"];
|
mode = "n";
|
||||||
key = "<leader>t";
|
key = "<leader>t";
|
||||||
action = "";
|
action = "<cmd>ToggleTerm<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle terminal";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>tf";
|
||||||
|
action = "<cmd>ToggleTerm direction=float<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle floating terminal";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>th";
|
||||||
|
action = "<cmd>ToggleTerm<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle horizontal terminal";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>tv";
|
||||||
|
action = "<cmd>ToggleTerm direction=vertical<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Toggle vertical terminal";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>tt";
|
||||||
|
action = "<cmd>ToggleTerm direction=tab<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Open terminal in a new tab";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
# Tabs
|
# Tabs
|
||||||
|
|
Loading…
Reference in a new issue