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

Nvim terminal color support #24

Closed
yzlnew opened this issue Feb 27, 2020 · 4 comments
Closed

Nvim terminal color support #24

yzlnew opened this issue Feb 27, 2020 · 4 comments

Comments

@yzlnew
Copy link

yzlnew commented Feb 27, 2020

Terminal in Neovim support g:terminal_color_N to set colors. See in here.
A possible configuration for gruvbox-material medium.

if get(g:, 'colors_name', 'default') == 'gruvbox-material'
    let g:terminal_color_0  = '#282828'
    let g:terminal_color_1  = '#ea6962'
    let g:terminal_color_2  = '#a9b665'
    let g:terminal_color_3  = '#d8a657'
    let g:terminal_color_4  = '#7daea3'
    let g:terminal_color_5  = '#d3869b'
    let g:terminal_color_6  = '#89b482'
    let g:terminal_color_7  = '#d4be98'
    let g:terminal_color_8  = '#7c6f64'
    let g:terminal_color_9  = '#402120'
    let g:terminal_color_10 = '#34381b'
    let g:terminal_color_11 = '#e78a4e'
    let g:terminal_color_12 = '#0e363e'
    let g:terminal_color_13 = '#928374'
    let g:terminal_color_14 = '#374141'
    let g:terminal_color_15 = '#ddc7a1'
endif

Results on Windows10, Neovim with powershell
image

@sainnhe
Copy link
Owner

sainnhe commented Feb 27, 2020

This is already supported, see colors/gruvbox-material.vim.

So doesn't that code work?

@yzlnew
Copy link
Author

yzlnew commented Feb 27, 2020

With default config,
image
Maybe the forground color is a little too gray? Not quite readable.
image

@sainnhe
Copy link
Owner

sainnhe commented Feb 27, 2020

Should be fixed via fc2cf7a.

@yzlnew
Copy link
Author

yzlnew commented Feb 27, 2020

Thanks, works fine now.

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

2 participants