iceberg.vim
iceberg.vim copied to clipboard
Haskell highlighting is fairly monotone
Environment:
- Void Linux
- Neovim 0.4.3
- Kitty
If you have a trouble with coloration and are using Vim/Neovim with terminal:
- [Yes] Does your Vim support full colors? (
:set termguicolors
) - [Yes] Does your terminal support full colors? (e.g. Terminal.app doesn't support it)
At the moment function names are highlighted for type definitions but not when doing pattern matching, and constructors have the same color as types and keywords, which is kind of uninformative. Is there any way this could be tweaked without breaking colors for other languages?
Could you share a URL for those codes? I'd like to test them in my environment.
I don't happen to have that specific file around anymore (I was probably doing record types incorrectly anyways) but here are some other (actually working, as far as I can tell) typecheckers that could serve as some good test programs:
https://github.com/davidgarland/types/blob/master/typed/bidirectional_type_checking/bidir.hs https://github.com/davidgarland/types/blob/master/typed/compositional_type_checking/comp.hs https://github.com/davidgarland/types/blob/master/typed/dependent_types/bruijn.hs
@davidgarland, are you using some plugin for Haskell or have you set up treesitter for it? Because it looks a bit better for me (I'm using treesitter):
I think it is related to this issue: https://github.com/cocopon/iceberg.vim/issues/97