iceberg.vim icon indicating copy to clipboard operation
iceberg.vim copied to clipboard

Haskell highlighting is fairly monotone

Open davidgarland opened this issue 4 years ago • 4 comments

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)

Imgur Imgur

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?

davidgarland avatar Dec 08 '19 04:12 davidgarland

Could you share a URL for those codes? I'd like to test them in my environment.

cocopon avatar Dec 25 '20 05:12 cocopon

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 avatar Dec 25 '20 22:12 davidgarland

@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): Capto_Capture 2022-02-12_06-40-55_PM

fragov avatar Feb 12 '22 16:02 fragov

I think it is related to this issue: https://github.com/cocopon/iceberg.vim/issues/97

fragov avatar Feb 12 '22 16:02 fragov