Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more colors for operator in OCaml #144

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions colors/gruvbox.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,16 @@ hi! link rustDefault GruvboxAqua

" }}}

" Ocaml: {{{

hi! link ocamlOperator GruvBoxAqua
hi! link ocamlKeyChar GruvBoxAqua
hi! link ocamlArrow GruvboxAqua
hi! link ocamlInfixOpKeyword GruvboxAqua
hi! link ocamlConstructor GruvboxYellow
Comment on lines +1597 to +1601
Copy link

@undu undu Oct 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this would take the colours from the already-defined categories, making the code look more consistent with other languages. (The groups were taken from the equivalents in nvim-tree-sitter)

Suggested change
hi! link ocamlOperator GruvBoxAqua
hi! link ocamlKeyChar GruvBoxAqua
hi! link ocamlArrow GruvboxAqua
hi! link ocamlInfixOpKeyword GruvboxAqua
hi! link ocamlConstructor GruvboxYellow
hi! link ocamlOperator Operator
hi! link ocamlKeyChar Delimiter
hi! link ocamlArrow Delimiter
hi! link ocamlInfixOpKeyword Keyword
hi! link ocamlConstructor Special

Copy link

@undu undu Oct 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How the code looks like with this change:
Screenshot_20201003_164951

Compare with tree-sitter highlighting:
Screenshot_20201003_165018


" }}}


" Functions -------------------------------------------------------------------
" Search Highlighting Cursor {{{
Expand Down