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

Conceal characters colors not set #12

Closed
RicherMans opened this issue Mar 1, 2019 · 11 comments
Closed

Conceal characters colors not set #12

RicherMans opened this issue Mar 1, 2019 · 11 comments
Labels

Comments

@RicherMans
Copy link

RicherMans commented Mar 1, 2019

Hey there,
I love that theme but had for quite some time a problem with it, that it renders conceal characters with wrong colors( by default DarkGrey ):

screenshot_20190301_105206

I checked the documentation for neovim and vim and found the reason:

hi Conceal guibg=material guifg=material

Fixes it, but doesn't look super good. If you have time, could you tell me which colors should be appropriate ?

@kaicataldo
Copy link
Owner

kaicataldo commented Mar 6, 2019

Hey, I'm currently on vacation, but happy to take a look when I get back.

Edit: I'd like to actually take the time to do this right, but if you wanted a quick fix in the interim you should be able to add the following line in this file for a quick fix:

call s:HL('Conceal', s:gray4, '', '')

If you don't like the color defined by s:gray4, you can use any of the other defined colors or provide your own hex color code.

I'll take a look when I'm back from my vacation and can do a proper fix :)

@kaicataldo
Copy link
Owner

I've just done a major rewrite of the full theme. Is this still an issue?

@RicherMans
Copy link
Author

Hey there,
unfortunately yes, still the same as before, but the theme looks much better now!

Screenshot_20190630_141617

@kaicataldo
Copy link
Owner

Thanks for the kind words. I’ll try to get a patch in to fix this today.

@kaicataldo
Copy link
Owner

@RicherMans Can you give me reproduction steps? I'm realizing that I don't use Conceal characters in any of the work I do (which is why these colors aren't set!).

@RicherMans
Copy link
Author

Hey sure, as far as I am concerned, just need in your ~/.config/nvim/init.vim to add:

Plug 'vim-pandoc/vim-pandoc-syntax'

setlocal conceallevel=2
let g:pandoc#syntax#conceal#use = 1

and then just open any .md file.

Moreover, I cursorcolumn and cursorrow seem a bit weird with that black color:

Screenshot_20190701_000553

@kaicataldo
Copy link
Owner

Great, thanks - I'll see if I can fix that up.

The CursorLine color is intended - it matches the original theme. I set CursorColumn to match, which I think makes sense. I don't set cursorcolumn myself, so this is my first time actually seeing it. How do other themes typically handle this?

@kaicataldo
Copy link
Owner

This should now be fixed by b23a99b.

I also update the fold colors so that they wouldn't conflict with the relative number color.

Please confirm if you get a chance!

@RicherMans
Copy link
Author

They there,
yeah is somewhat fixed, before all conceal characters had a different background color than the theme, but now they are nearly invisible e.g.,:

Screenshot_20190701_082531

Compare with e.g., one theme:

Screenshot_20190701_082737

Also since the revamp, the error bar to the left is weirdly colored and symbols rather invisible:

Screenshot_20190701_082323

@kaicataldo
Copy link
Owner

kaicataldo commented Jul 1, 2019

We can definitely add a background color to Conceal characters if that's what others themes tend to do. As far the line numbers go, I changed it to match the VS Code themes.

Edit: I intentionally made the Conceal characters unobtrusive, since they're not actual syntax. Maybe that was a bad assumption - again, I don't really use them.

@kaicataldo
Copy link
Owner

I'm going to go ahead and close this issue because the bug is fixed (Conceal not being set). Totally open to having discussions around changing colors, but I think it would be helpful to do that on a new issue (or on this PR). I'm still fixing a few regressions from the rewrite, and I think it's useful to distinguish regressions for enhancements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants