-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added an option to use guisp as guifg for terminal users #50
Conversation
Damn, that's hot. Let me test this for a little bit, I'm definitely gonna merge your PR |
Awesome. :) Just realized this will change it when NOT in the console as well though, maybe we don't want to be setting guifg at all, just ctermfg... |
…ride foreground color
I revisited this again recently :)
An example use case might be something like this in if has('gui_running')
let g:gruvbox_foreground_guisp=1
endif Seems to work correctly, except on the current cursor line with What are your opinions on this? |
Just saw this after I posted #65 Really like this change:) but how about making the entire mis spell word's color more like jellybeans? |
Hmm, maybe let g:gruvbox_guisp_fallback="bg" so users could choose foreground or background to compensate for the lack of guisp... |
Wow!, thanks! I'll try it out. |
I got |
Have you set a spelling localization? I don't think you will get a spelling error on color/colour with "en", for example, you have to set "en_us" or similar. Also try rare words, which should be purple - A good word to test this with is "vim". |
I do have spelllang set as en now, but I can get spelling error colors in jellybeans or molokai |
Works fine for me :) Do you get different color errors in gvim with gruvbox when not on this branch? Imo it doesn't look great though, the guisp color is too light to be used as a background. |
Re: Cursorline glitches discussed above: According to SO, "cursorline highlighting has priority over the syntax highlighting (spell errors belong to that), and that cannot be changed." |
Yes I do get different colors in macvim on the main branch. |
Added an option to use guisp as guifg for terminal users
Thanks, merged |
@shengyun
|
@morhetz the colors are exactly the same in terminal and macvim. Thanks:) |
This allows vim to guess the value of &background. This will set the best colors based on system configuration. This will especially help while using 16 colors: see morhetz#50 This disables the fix for morhetz#7 temporarily while entering vim. It should still be possible to switch to and from light and dark mode afterwards.
People in the console can't see guisp colors, and therefore can't tell the difference between different kinds of spelling errors.
This commit adds a workaround; a
g:gruvbox_guisp_as_guifg
variable which allows the guisp color to override the guifg color, so the entire word changes color instead of just the underline.