Neovim terminal requirements
The terminal features Neovim and Helix rely on, how to tell whether yours has them, and how Lumen handles each one.
Neovim runs in any terminal, but the terminal decides how good it looks and which keys reach it. A good Neovim terminal needs five things: 24-bit colour, curly underlines, a keyboard protocol that can tell keys apart, a way to copy to the system clipboard, and mouse reporting. Helix needs the same. Ghostty, kitty, WezTerm, iTerm2, foot and Lumen all cover the basics; the old defaults (Terminal.app before macOS Tahoe, and some distro terminals) fall short on one or two.
Here's each requirement, how to check it, and what to set.
What a Neovim terminal needs
| Feature | What breaks without it | Lumen |
|---|---|---|
| Truecolor (24-bit) | Colour schemes look wrong or muddy | Yes |
| Undercurl | Diagnostics show as plain underlines | Yes |
| kitty keyboard protocol | Ctrl+I equals Tab, Esc equals Ctrl+[, no key release events | Yes |
| OSC 52 clipboard | "+y fails over SSH with no clipboard tool | Write (copy) only |
| Mouse reporting | Clicking and scrolling don't reach the editor | Yes (X10, UTF-8, SGR) |
| Focus events | autoread and FocusGained don't fire | Yes |
| Bracketed paste | Pasted code is auto-indented into a mess | Yes |
Truecolor
Modern colour schemes such as Tokyo Night or Catppuccin define exact hex colours. In a 256-colour terminal they are rounded to the nearest palette entry and look off. Neovim 0.10 and later turn on termguicolors by themselves when they can tell the terminal supports 24-bit colour, usually from COLORTERM=truecolor or the terminfo entry. If colours still look wrong, check:
echo $COLORTERM # should print truecolor
nvim --clean +'set termguicolors?'
Helix detects truecolor too, and has a true-color = true setting under [editor] to force it on when detection gets it wrong, which happens most often inside tmux. Lumen supports truecolor. For picking schemes, see terminal themes.
Undercurl
LSP diagnostics and spell checking use a wavy underline, often in its own colour. The terminal has to support both the curly style and coloured underlines. Without them you get a straight underline in the text colour, or nothing. Helix has an undercurl setting to override detection, much like true-color. Lumen draws underline and undercurl, alongside bold, italic and strikethrough.
The kitty keyboard protocol
Traditional terminals send the same bytes for Tab and Ctrl+I, for Esc and Ctrl+[, and for Enter and Ctrl+M. They can't report Ctrl+Shift combinations reliably, and they never report a key being released. The kitty keyboard protocol fixes this: the program asks for an extended encoding, and the terminal sends unambiguous codes.
Neovim asks for it at startup and switches it on when the terminal replies, falling back to another encoding when it doesn't. That's what lets you map <C-i> separately from <Tab>. Helix calls it the enhanced keyboard protocol and needs it for some bindings, including anything with the Super (Cmd) key.
kitty, Ghostty, WezTerm (with enable_kitty_keyboard = true) and foot support it. Lumen supports it, so Neovim and Helix can tell Ctrl+I from Tab and Esc from Ctrl+[, and see key releases. One thing to watch in any terminal: the terminal's own shortcuts are taken first. In Lumen, if a binding steals a key you want in your editor, give it back in [keys]:
[keys]
ctrl-t = "none" # let Neovim have Ctrl+T
Clipboard over OSC 52
Locally, Neovim copies with pbcopy, wl-copy or xclip. Over SSH none of those reach your laptop. OSC 52 is an escape sequence that asks the terminal itself to put text on the clipboard, so it works through SSH and, with the right settings, tmux.
Neovim 0.10 and later include an OSC 52 provider and use it automatically when no other clipboard tool is found and the terminal says it supports OSC 52. Helix can be set to use it with clipboard-provider = "termcode".
Lumen supports OSC 52 write, not read. Yanking to + copies to your system clipboard, even from a remote machine. Pasting from + through OSC 52 won't work; use your terminal's paste shortcut instead, which arrives as a bracketed paste. Neovim's own docs note that many terminals don't allow clipboard reads, for security reasons, so this is a common setup.
Mouse and focus events
Neovim enables the mouse by default, so clicking to place the cursor, dragging splits and scrolling all work if the terminal reports mouse events. Helix has mouse = true by default. SGR mouse encoding matters on wide screens, since the oldest encoding can't report columns past 223. Lumen reports mouse events in X10, UTF-8 and SGR modes.
Focus events tell the editor when you switch away and back, which triggers autoread to reload changed files. Lumen sends them.
Fonts and icons
File trees, status lines and pickers use Nerd Font icons. Install a patched font and set it as the terminal's font; Neovim doesn't choose fonts itself in a terminal. Lumen bundles JetBrains Mono and accepts any installed monospace font through font-family, so a Nerd Font works as long as it's installed. It draws box-drawing and Powerline characters as shapes, so status line separators and window borders join without gaps. It also draws programming ligatures when the font has them. The terminal fonts guide covers the choices.
Lumen as a Neovim terminal
Beyond the protocol support above, a few Lumen features help with editor work:
- Split panes with Focus Mode (Ctrl+Shift+Enter, Cmd+Shift+Enter on macOS) to zoom the editor pane, then zoom back out to the test runner.
- Keyboard select mode (Ctrl+Shift+Space) to copy from scrollback with vi keys.
- OSC 8 hyperlinks and plain URLs open with Ctrl+click or Cmd+click.
- Config changes apply on save, so tuning
font-sizeorline-heightdoesn't need a restart.
What it lacks: there's no sixel or kitty graphics protocol, so image previews in plugins such as image.nvim won't show. For that, kitty, Ghostty or WezTerm are the better choice; the Ghostty vs kitty comparison covers two of the strongest options, and GPU-accelerated terminals explains the rendering side. The full key list for Lumen is in the keyboard docs.
Questions
What is the best terminal for Neovim?
Any terminal with truecolor, undercurl, the kitty keyboard protocol and OSC 52 works well. Ghostty, kitty and WezTerm also support image protocols; Lumen covers the editing features but not images.
Why can't Neovim tell Ctrl+I from Tab?
Traditional terminals send the same byte for both. A terminal that supports the kitty keyboard protocol sends distinct codes, and recent Neovim versions turn the protocol on automatically.
Does Helix support the kitty keyboard protocol?
Yes. Helix calls it the enhanced keyboard protocol and uses it when the terminal supports it. Some bindings, such as those with the Super or Cmd key, only work with it.
How do I copy from Neovim over SSH?
Use OSC 52. Neovim 0.10 and later use it automatically when no other clipboard tool is available and the terminal supports it. Copy works in Lumen; paste with the terminal's own shortcut.
Try Lumen
Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.