Term2 is a Neovim plugin that opens a terminal window above the current buffer, similar to how fugitive's display.
- Opens terminal in a split window next to the current buffer
- Toggles terminal visibility with a single command
- Preserves terminal state between toggles
- Automatically exits insert mode when leaving terminal
use {
'franpfeiffer/term2.nvim',
config = function()
require('term2').setup({a
width = 35,
keymap = '<leader>t'
})
end
}{
'franpfeiffer/term2.nvim',
config = function()
require('term2').setup({
width = 35,
keymap = '<leader>t'
})
end
}require('term2').setup({
shell = vim.o.shell, -- Shell to use (defaults to Neovim's shell setting)
width = 35, -- The size of the pane
keymap = '<leader>t' -- Keymap to toggle terminal (optional)
})Restart your neovim
:Term2- Toggle the terminal window
<leader>t(if configured) - Toggle terminal window<C-Right>Make it smaller (l for less {less penis})<C-Left>Make it larger (p for penis {more penis})q(in normal mode within terminal) - Close terminal window<C-q>(in terminal mode) - Exit terminal mode and close terminal window<Esc>(in terminal mode) - Exit terminal mode
- Neovim 0.7+
MIT