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

C++ colors not working properly #154

Open
redfoggg opened this issue Jul 1, 2020 · 6 comments
Open

C++ colors not working properly #154

redfoggg opened this issue Jul 1, 2020 · 6 comments

Comments

@redfoggg
Copy link

redfoggg commented Jul 1, 2020

This is actualy one of the best themes around there, but for some reason the C++ syntax is not working properly...
image
You can see the problem in this example, i have almost every highlight i usualy like in this theme, but the object declarations is in plain text mode... all blank.
There is a way to workaround this? i try to change some of the colors myself but for real the results are very confusing(sometimes changes sometimes don't, but i know i'm bellow a begginer in vim scripting...).
I'm using cpp enchanged syntax, i try to use the recomended c syntax and the results are pretty much the same, actualy exactly the same.

@NLKNguyen
Copy link
Owner

I believe for C++you need some syntax plugin that integrates with a C++ compiler like https://github.com/ycm-core/YouCompleteMe for recognizing classes. Please try that first.

@yueyingjuesha
Copy link

I believe for C++you need some syntax plugin that integrates with a C++ compiler like https://github.com/ycm-core/YouCompleteMe for recognizing classes. Please try that first.

I have used some c++ highlight plugins such as:
https://github.com/octol/vim-cpp-enhanced-highlight
https://github.com/bfrg/vim-cpp-modern
which provides much richer functions of c++ highlighting than paper-color-theme built-in cpp syntax highlight, but none of them work under papercolor-theme, do you know how to make those plugins work?

@j-hui
Copy link

j-hui commented Apr 13, 2021

@yueyingjuesha I just came across this issue too, at least for vim-cpp-enhanced-highlight. The problem there is that a lot of highlighting links to Function, which PaperColor seems to define as the foreground color: https://github.com/NLKNguyen/papercolor-theme/blob/master/colors/PaperColor.vim#L1209

@NLKNguyen is there a recommended way to override this highlighting?

@416207298
Copy link

I also have this problem, is anyone have a solution?

@redfoggg
Copy link
Author

redfoggg commented Jun 24, 2022

I also have this problem, is anyone have a solution?

Maybe not what you @416207298 are looking for, but I just don't use vim anymore, I guess some month's after opening this issue I switched to Neovim, nowadays nvim has Tree-sitter support which works pretty much with every set of colors out of the box, I don't use this theme anymore also, but I guess it works well with it too.
If you are not that into using vim you can try to switch to Neovim to have less headaches, previously than that I had manually changed some functions and mappings for this colorscheme to work with Vim properly and tbh I don't encourage anyone to do so, colors should not be a thing you have to put work to have, it should simply work, unless you are creating it off course.

@416207298
Copy link

You know what, I agree with you, buddy. I'll try.

I also have this problem, is anyone have a solution?

Maybe not what you @416207298 are looking for, but I just don't use vim anymore, I guess some month's after opening this issue I switched to Neovim, nowadays nvim has Tree-sitter support which works pretty much with every set of colors out of the box, I don't use this theme anymore also, but I guess it works well with it too. If you are not that into using vim you can try to switch to Neovim to have less headaches, previously than that I had manually changed some functions and mappings for this colorscheme to work with Vim properly and tbh I don't encourage anyone to do so, colors should not be a thing you have to put work to have, it should simply work, unless you are creating it off course.

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

5 participants