papercolor-theme icon indicating copy to clipboard operation
papercolor-theme copied to clipboard

C++ colors not working properly

Open redfoggg opened this issue 4 years ago • 6 comments

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.

redfoggg avatar Jul 01 '20 21:07 redfoggg

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.

NLKNguyen avatar Jul 08 '20 05:07 NLKNguyen

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?

yueyingjuesha avatar Sep 29 '20 06:09 yueyingjuesha

@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?

j-hui avatar Apr 13 '21 20:04 j-hui

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

416207298 avatar Jun 24 '22 02:06 416207298

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.

redfoggg avatar Jun 24 '22 10:06 redfoggg

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.

416207298 avatar Jun 24 '22 14:06 416207298