doki-theme / doki-theme-vim

Complementary color schemes for your full Otaku terminal experience. Works best with the Doki Theme for Hyper.js!
MIT License
72 stars 7 forks source link

C/C++ syntax highlighting #30

Closed KonniLol closed 2 years ago

KonniLol commented 2 years ago

I use C/C++ and really like your color schemes but the C and C++ highlighting is quite... minimalistic. I hope you can add support soon.

Unthrottled commented 2 years ago

Do you use a plugin for C/C++ (like this) or just out-of-the-box vim syntax highlighting?

KonniLol commented 2 years ago

Currently I'm using the vanilla neovim highlighting with your colorschemes until I find a plugin written in lua (I heard that neovim has better lua support and it is better for some reason). I'm switching from vscodium to neovim and don't know yet how everything works. So I'm sorry if what I wrote doesn't make any sense... :)

Unthrottled commented 2 years ago

Hey!

So I've had some time to look into the issue.

It looks like this isn't an issue with the theme itself, but the vanilla neovim experience. There apparently isn't any thing out of the box that parses the language and adds highlighting to it.

So I installed nvim-treesitter on my nvim 0.6.1 and the latest doki-theme-vim.

Before After
Screenshot from 2022-04-05 18-15-38 Screenshot from 2022-04-06 05-56-45

It doesn't look like the official Doki Theme syntax highlighting scheme, but it is more colorful. I don't use vim for development, so I'm not going to invest any time into making the tree sitter look official.

I'm going to close this issue. Let me know if you need anymore information on how to get that setup.

By the way, just vim and vim-cpp-modern looks okay-ish. At least more like the official highlighting scheme.

Screenshot from 2022-04-06 06-04-17