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

Comments bg color acts strangely #128

Open
jerpint opened this issue Feb 10, 2022 · 4 comments
Open

Comments bg color acts strangely #128

jerpint opened this issue Feb 10, 2022 · 4 comments

Comments

@jerpint
Copy link

jerpint commented Feb 10, 2022

For some odd reason, only using this theme, the comments get a weird highlight added. This only happens with this theme and disappears the second I switch to another theme. Here is a screenshot of what it looks like:

image

Any idea how to fix this?

@jerpint
Copy link
Author

jerpint commented Feb 10, 2022

opening my editor using the exact same vimrc, just nvim instead of vim, fixes the problem

@ademille
Copy link

ademille commented Feb 28, 2022

I have the same problem. I've been using the color theme for quite a while and never had this problem, but I reinstalled all my plugins and I think it updated. I see the problem on nvim and vim. I'd love to know what happened. I ended up doing the following, which is obviously not ideal:
Commented out the following line in onehalfdark.vim:
call s:h("Comment", s:comment_fg, "", "italic")
and added
highlight Comment ctermfg=247 ctermbg=236 guifg=#919baa guibg=#282c34
to my init.vim
I stripped my init.vim/.vimrc down to just the plugin manager and this theme and it still had the problem.

@jerpint
Copy link
Author

jerpint commented Feb 28, 2022

im not entirely sure what the problem was, but i also noticed i had a separate colorscheme plugin with the same theme name that might have been causing conflicts

@ademille
Copy link

ademille commented Feb 28, 2022

Hmm. That's interesting. I reverted back to an earlier commit of the plugin and it fixed it for me.
In .vimrc/init.vim
Plug 'sonph/onehalf', {'branch': '5bec08d', 'rtp': 'vim/'}

I did a little more digging and the latest commit broke the comments:
* 141c775 - (grafted, HEAD -> master, origin/master, origin/HEAD) Italicize vim comments (#101) (1 year, 1 month ago) <Jason Wang>
If you remove the "italic" portion, the comments highlight as expected again (which is basically the same thing as using the previous commit).
Change
call s:h("Comment", s:comment_fg, "", "italic")
to
call s:h("Comment", s:comment_fg, "", "")

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