-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Incorrect color contrast on vim with st #166
Comments
Hi @loustak 👋, please note that the linked st theme is not an official theme but a contribution of a Nord user. I've not checked if the used colors are matching Nord's styles for syntax highlighting so your problem might be related to this. Also another problem might be that you Vim and terminal is not configured to use true colors. Can you please try to add the following config to your if (has("termguicolors"))
set termguicolors
endif Also please make sure you're running at least Nord Vim v0.10.0 or higher, otherwise the new comment color is also not supported. |
Thanks for the answer @arcticicestudio. I tried changing the color inside my st configuration to the new nord3 color. No changes. I checked my vim and tried I checked the nord vim version inside nord.vim installed by plug, and I'm using v0.12.0: let s:nord_vim_version="0.12.0" |
I found a solution: vim/vim#993 (comment) Adding the following lines to my " set Vim-specific sequences for RGB colors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
if (has("termguicolors"))
set termguicolors
endif
colorscheme nord |
Did the same thing, however I still can't get the current line highlight to work. |
@DictumMortuum you are right. I didn't noticed it first but I have the exact same issue. So I reopen it. |
Has someone found a solution to also enable highlight support for the current cursor line? |
I'd be happy to help, but I'm not sure what I should do - do you want me to try anything? |
Does it work if you're disabling italic font rendering in both st and the specific Nord theme configuration? Might be possible that there are conflicts with the terminal sequences. |
Hi ! St + vim works perfectly for me with this configuration. 😉 " ~/.vimrc
if exists('+termguicolors') && ($TERM == "st-256color" || $TERM == "tmux-256color")
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
let g:nord_italic = 1
let g:nord_italic_comments = 1
let g:nord_underline = 1
let g:nord_uniform_status_lines = 1
let g:nord_uniform_diff_background = 1
let g:nord_cursor_line_number_background = 1
colorscheme nord # ~/.tmux.conf
# $TERM, fix colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc" Source : tmux/tmux#1246 (comment) |
For my case, I'm not running vim inside tmux. |
@cyrilaugier Thanks, this helps a lot to encircle the root cause 👍 @loustak I guess I've also misunderstood your actual problem: I thought you're having wrong styles for the current line highlighting (like e.g. too dark or totally wrong color), but I guess this is also just a Vim setup problem on your side. |
Okay, I'm stupid, I just forgot to add the The issue seems close now. |
@loustak Not stupid, human. I could tell you a lot of private or job-related development/coding situations where I was like "wow, the fix was a one-liner" after spending hours with debugging 🙃 @DictumMortuum Could you please also check if you're just missing the |
Currently on vacation, but I believe that I don't have the cursor line
option enabled. Will check and update you as soon as possible !
…On Fri, Jul 26, 2019, 8:56 AM Arctic Ice Studio ***@***.***> wrote:
@loustak <https://github.com/loustak> Not stupid, human. I could tell you
a lot of private or job-related development/coding situations where I was
like "wow, the fix was a one-liner" after spending hours with debugging 🙃
Glad to see it works for your now.
@DictumMortuum <https://github.com/DictumMortuum> Could you please also
check if you're just missing the cursorline option? Otherwise we need to
check other settings that might conflict with the theme.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#166>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAR7GLDQS6VAAOHTX7MM2ILQBKGXFANCNFSM4H3LCV6A>
.
|
Confirmed, I'd forgot to set the cursorline option. I think that we can close! |
I'm using vim 8.1 (with +termguicolors) inside st under dwm. I applied the nord theme to st. I installed nord trough Plug as recommended.
But for some reason some colors are incorrect inside vim... For instance as you can see on the screenshots line numbers and comments color are to close to the background color.
More, there is no visual selection color at all. Everything else looks ok trough...
The text was updated successfully, but these errors were encountered: