-
Notifications
You must be signed in to change notification settings - Fork 18
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
Highlighting doesn't work #17
Comments
Fixed it by installing: https://github.com/vim-scripts/guicolorscheme.vim |
Well, I was wrong. It didn't fix it. |
Also 'NLKNguyen/papercolor-theme' is not working, with ranelpadon seetings. (vim 8.2 and nvim 0.5) |
Highlight doesn't work for me either, tried palenight and one-dark,
|
@reybeamde @mosheavni Make sure that this is set: let g:conflict_marker_highlight_group = '' and highlight overrides should come after the colorscheme is loaded/set. Or try to move those overrides at the bottom of your |
ok it's working after moving it after setting the colorscheme, however, why's that? |
@mosheavni IIRC, based on customizing the highlighting in other Vim plugins, they usually advise to do the override after the colorscheme is loaded since it sets its own highlighting group as well. I think because the last setting/highlighting will win, just like when overriding a variable. Otherwise, the colorscheme will win if you set your custom highlighting too early. Cheers. |
I was able to fix highlighting with a timer function to defer the highlighting: function! HighlightConflictMarker() abort
highlight ConflictMarkerBegin guibg=#2f7366
highlight ConflictMarkerOurs guibg=#2e5049
highlight ConflictMarkerTheirs guibg=#344f69
highlight ConflictMarkerEnd guibg=#2f628e
highlight ConflictMarkerCommonAncestorsHunk guibg=#754a81
endfunction
call timer_start(200, { tid -> execute('call HighlightConflictMarker()') })
" OR
" autocmd VimEnter * call HighlightConflictMarker() |
I got it working using terminal colors instead of gui: " from https://michurin.github.io/xterm256-color-picker/
highlight ConflictMarkerBegin ctermbg=34
highlight ConflictMarkerOurs ctermbg=22
highlight ConflictMarkerTheirs ctermbg=27
highlight ConflictMarkerEnd ctermbg=39
highlight ConflictMarkerCommonAncestorsHunk ctermbg=yellow |
This plugin seems great, but I can't get the highlighting to work.
The errors signs are from CoC, I assume this plugin might interfere with it?
Neither the default nor the example in the readme works.
I'm a vim newbie, so I don't really know what info to provide, but feel free to ask me.
The text was updated successfully, but these errors were encountered: