Skip to content
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

Docs on setting terminal colors? #2897

Closed
trusktr opened this issue Jun 25, 2015 · 5 comments
Closed

Docs on setting terminal colors? #2897

trusktr opened this issue Jun 25, 2015 · 5 comments

Comments

@trusktr
Copy link

trusktr commented Jun 25, 2015

Where might those be? Are there any colorschemes alreay handling terminal colors?

For example, here's what it looks like in neovim with the hybrid colorscheme applied, a terminal window (ugly) next to a javascript window (nice), in the neovim-e UI:

screen shot 2015-06-24 at 5 15 06 pm

@justinmk
Copy link
Member

I think that is controlled by your shell. E.g., the $LS_COLORS env var. Adding nvim-driven syntax highlighting beyond what already exists is out of scope.

@ghost
Copy link

ghost commented Jun 25, 2015

Adding nvim-driven syntax highlighting beyond what already exists is out of scope.

Yes, I agree. I'll close this, but on the off-chance that this isn't what you're talking about @trusktr then please reopen.

@ghost ghost closed this as completed Jun 25, 2015
@tarruda
Copy link
Member

tarruda commented Jun 26, 2015

If you mean the terminal color palette, you can use the terminal_color_N variables where N is a number between 0 and 255. For example, here's what I have in my nvimrc:

let g:terminal_color_0  = '#2e3436'
let g:terminal_color_1  = '#cc0000'
let g:terminal_color_2  = '#4e9a06'
let g:terminal_color_3  = '#c4a000'
let g:terminal_color_4  = '#3465a4'
let g:terminal_color_5  = '#75507b'
let g:terminal_color_6  = '#0b939b'
let g:terminal_color_7  = '#d3d7cf'
let g:terminal_color_8  = '#555753'
let g:terminal_color_9  = '#ef2929'
let g:terminal_color_10 = '#8ae234'
let g:terminal_color_11 = '#fce94f'
let g:terminal_color_12 = '#729fcf'
let g:terminal_color_13 = '#ad7fa8'
let g:terminal_color_14 = '#00f5e9'
let g:terminal_color_15 = '#eeeeec'

This is similar to the gnome terminal tango palette, which should look nicer(IMO) than the screenshot you posted. Note that these variables won't affect the terminal UI, which simply passes the color numbers to the real terminal.

@tarruda
Copy link
Member

tarruda commented Jun 26, 2015

@trusktr
Copy link
Author

trusktr commented Jun 27, 2015

That's exactly what I needed. Thanks @tarruda!

ianks added a commit to ianks/gruvbox that referenced this issue Jan 28, 2016
Neovim has support for embedded terminals. However, the colors do not inherit
from the parent shell settings, and end up looking funky. This commit adds 16
color support for Neovim's terminal.

See: neovim/neovim#2897 (comment)
Splinter1984 pushed a commit to Splinter1984/gruvbox that referenced this issue Nov 2, 2023
Neovim has support for embedded terminals. However, the colors do not inherit
from the parent shell settings, and end up looking funky. This commit adds 16
color support for Neovim's terminal.

See: neovim/neovim#2897 (comment)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants