-
Just to provide some context, I'm in the process of switching from https://github.com/ChristianChiarulli/nvim to Since the shortcut overview that pops up after a short delay when the I noticed that lvim.builtin.which_key.mappings["t"] = {
name = "+Terminal",
f = { "<cmd>ToggleTerm<cr>", "Floating terminal" },
} This gives me the option to start a floating terminal with But I'm still missing the other terminal options (horizontal, vertical, multiple terminals etc.) and I wonder how they are implemented. It feels like I'm missing something. Any hints are greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can try something like lvim.builtin.which_key.mappings["t"] = {
name = "+Terminal",
f = { "<cmd>ToggleTerm<cr>", "Floating terminal" },
v = { "<cmd>2ToggleTerm size=30 direction=vertical<cr>", "Split vertical" },
h = { "<cmd>2ToggleTerm size=30 direction=horizontal<cr>", "Split horizontal" },
} Got it from here. |
Beta Was this translation helpful? Give feedback.
-
tysm guys this works great but how do I quickly exit the floating terminal? |
Beta Was this translation helpful? Give feedback.
You can try something like
Got it from here.