Skip to content

Commit

Permalink
Add haskell no_bold_types option
Browse files Browse the repository at this point in the history
  • Loading branch information
fredins committed Sep 3, 2023
1 parent 9051480 commit b86da5c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ An example configuration is available below
```VimL
let g:PaperColor_Theme_Options = {
\ 'language': {
\ 'haskell': {
\ 'no_bold_types' : 1
\ },
\ 'python': {
\ 'highlight_builtins' : 1
\ },
Expand All @@ -295,11 +298,12 @@ let g:PaperColor_Theme_Options = {

#### Currently available language options

language | option | value | default
------ | ------ | ------ | ------
`c` | `highlight_builtins` | 1: enable | 0: disable
`cpp` | `highlight_standard_library` | 1: enable | 0: disable
`python` | `highlight_builtins` | 1: enable | 0: disable
language | option | value | default
------ | ------ | ------ | ------
`c` | `highlight_builtins` | 1: enable | 0: disable
`cpp` | `highlight_standard_library` | 1: enable | 0: disable
`python` | `highlight_builtins` | 1: enable | 0: disable
`haskell` | `no_bold_types` | 1: enable | 0: disable


### Vim-airline support
Expand Down
9 changes: 7 additions & 2 deletions colors/PaperColor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ fun! s:generate_language_option_variables()
let l:available_language_options = [
\ 'c__highlight_builtins',
\ 'cpp__highlight_standard_library',
\ 'python__highlight_builtins'
\ 'python__highlight_builtins',
\ 'haskell__no_bold_types'
\ ]

" 1. Generate variables and set to default value
Expand Down Expand Up @@ -1739,7 +1740,11 @@ fun! s:apply_syntax_highlightings()


" Haskell Highlighting
exec 'hi haskellType' . s:fg_aqua . s:ft_bold
if s:langOpt_haskell__no_bold_types == 1
exec 'hi haskellType' . s:fg_aqua
else
exec 'hi haskellType' . s:fg_aqua . s:ft_bold
endif
exec 'hi haskellIdentifier' . s:fg_orange . s:ft_bold
exec 'hi haskellOperators' . s:fg_pink
exec 'hi haskellWhere' . s:fg_foreground . s:ft_bold
Expand Down

0 comments on commit b86da5c

Please sign in to comment.