gruvbox-community / gruvbox

Retro groove color scheme for Vim - community maintained edition
MIT License
806 stars 62 forks source link

cursorline not highlighting "Operator" syntax group #57

Open rbong opened 5 years ago

rbong commented 5 years ago

2019-01-24-132226_339x67_scrot The '=' isn't highlighted by cursorline. I investigated and found this: https://github.com/morhetz/gruvbox/blob/cb4e7a5643f7d2dd40e694bcbd28c4b89b185e86/colors/gruvbox.vim#L590 call s:HL('Normal', s:fg1, s:bg0) The syntax is setting the background back to bg0. Don't know if it is intended behaviour but I find it very distracting sometimes. Edit: typo.

:robot: This issue has been automatically copied from morhetz#260 :robot:

xuyangy commented 5 years ago

python def still weird: image

same for class definition: image

rbong commented 5 years ago

I'm not able to recreate this or the original issue anymore. Please, anyone, post your vimrc and terminal information if you experience this issue.

xuyangy commented 5 years ago

This maybe related to python-mode. Because when I disable python-mode, the problem is gone. Interestingly, if python-mode is disabled, the original issue is gone even without this fix: https://github.com/gruvbox-community/gruvbox/commit/b637bb503fe4ceaadf3abe2c64fcb73c7552ccbd

xuyangy commented 5 years ago

a minimal vimrc can be:

syntax enable
filetype plugin on
call plug#begin('~/.local/share/nvim/plugged')
    Plug 'morhetz/gruvbox'
    Plug 'python-mode/python-mode', {'branch': 'develop'}
call plug#end()
colorscheme gruvbox