New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal colors inside neovim from normal terminal #3114
Comments
Are you using iTerm2? If so, what version? |
Also, what's |
I have big issues with colors for NVim. When I open vim using the same vimrc content it looks ok. is there any way to set default colors? I've checked the fix in the link posted by fwalch, I've tested with terminal.app, iterm2 and all its the same. Terminal: terminal.app / iterm |
This means that your terminal is tmux, not terminal.app or iterm. Tmux is interpreting all escape sequences on its own and then sends whatever escape sequences it thinks is right to send to the currently used terminal to display everything correctly. Since it does not know about 24-bit colors (note: there is a patch available somewhere to make it know) and parts of 24-bit color codes (unless expressed in a form with colons) look like other colors it cannot send right escapes to terminal.app or iTerm, but highlighting is still not completely missing. You should disable 24-bit colors in NeoVim when using tmux. |
The original issue isn't resolved, reopening. |
@agustinvinao Is not vimrc too late? AFAIR you can only set this in shell before launching NeoVim. |
@agustinvinao Look outside tmux means that your terminal emulator supports true color in the same fashion tmux does. Do not know anything about terminal.app, but iterm does not support true color until some second version. |
@ZyX-I I've tested with ITerm v2 too, all my tests are with "let $NVIM_TUI_ENABLE_TRUE_COLOR=0": |
|
@agustinvinao Make sure you're using the iTerm2 nightly (http://iterm2.com/downloads/nightly/). @ianks What if you try another colorscheme, my experience is that some mess with the shell colors (like base16-eighties), and some don't (vim-hybrid). |
// For future: do not fool yourself by using |
Closing, unless there is a specific issue not covered by the posts above. |
I also have the same problem. As you can see, the colors from the terminal in neovim don't correspond to the ones on the right (just the terminal). In my #Neovim true color support
export NVIM_TUI_ENABLE_TRUE_COLOR=1
#Neovim cursor shape support
export NVIM_TUI_ENABLE_CURSOR_SHAPE=1 and finally: $ echo $TERM
xterm-256color
$ My neovim configuration is here: https://github.com/bigchirv/neovim-distribution I would love to know how can I fix it or, if it is actually a bug, reopen this issue report. Thanks! EDIT: Added $TERM. |
@bigchirv your colorscheme is probably lacking |
@Renstrom I just checked gruvbox, and they are indeed missing |
Thanks @Renstrom! Adding the Here's more information about setting |
2022 still have same issue, neovim picks up my terminal colorscheme color for background instead of nvim colorscheme colors. syntax works fine, but not the background. in alacritty/iterm/neovide, etc. |
When opening a terminal inside Neovim, the line colors are different feel what they should be.
Specs:
The text was updated successfully, but these errors were encountered: