Skip to content

franpfeiffer/term2.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Term2

Overview

Term2 is a Neovim plugin that opens a terminal window above the current buffer, similar to how fugitive's display.

Features

  • 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

Installation

Using packer

use {
  'franpfeiffer/term2.nvim',
  config = function()
    require('term2').setup({a
      width = 35,
      keymap = '<leader>t'
    })
  end
}

Using lazy

{
  'franpfeiffer/term2.nvim',
  config = function()
    require('term2').setup({
      width = 35,
      keymap = '<leader>t'
    })
  end
}

Configuration Options

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)
})

Usage

After install

Restart your neovim

Commands

  • :Term2 - Toggle the terminal window

Default Keymaps

  • <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

Requirements

  • Neovim 0.7+

License

MIT

About

A plugin that pops a terminal on the right side

Resources

License

Stars

Watchers

Forks

Languages