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

Syntax highlighting overrides the user's colorscheme #52

Closed
ajgrf opened this issue Apr 17, 2017 · 1 comment · Fixed by #62
Closed

Syntax highlighting overrides the user's colorscheme #52

ajgrf opened this issue Apr 17, 2017 · 1 comment · Fixed by #62

Comments

@ajgrf
Copy link
Contributor

ajgrf commented Apr 17, 2017

The few instances of syntax highlighting defined in ftplugin/ledger.vim seem to override the user's colorscheme. The main syntax highlighting file syntax/ledger.vim is fine.

These appear to be the problematic lines, I think because of the exclamation:

hi! link LedgerNumber Number
hi! link LedgerNegativeNumber Special
hi! link LedgerCleared Constant
hi! link LedgerPending Todo
hi! link LedgerTarget Statement
hi! link LedgerImproperPerc Special

For example, I added the following line to my colorscheme:

highlight LedgerNegativeNumber ctermfg=1 guifg=#880000

But it gets overridden by vim-ledger.

@kljohann
Copy link
Member

kljohann commented Jun 2, 2017

I would expect that this can be fixed by replacing hi! with highlight default, but a cursory test did not produce the desired behavior. Maybe you can experiment and come up with a patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants