arakashic / chromatica.nvim

Clang based syntax highlighting for Neovim
MIT License
299 stars 17 forks source link

foldmethod=syntax replacement? #64

Open ghost opened 5 years ago

ghost commented 5 years ago

Greetings,

great plugin. However, foldmethod=syntax no longer works (doesn't fold). I assume because c.vim is no longer used when Chromatica is active. Would it be possible to restore this functionality?

arakashic commented 5 years ago

The problem is chromatica uses simplified c.vim and cpp.vim to handle the highlights that cannot be generated by libclang. They do not have the usual highlights the syntax folding relies on.

I can look into it, but not sure if this can be fixed.