neoclide / coc-smartf

Make jump to character easier.
72 stars 6 forks source link

Custom colour config #8

Closed shtanton closed 5 years ago

shtanton commented 5 years ago

This is a feature request, I'll write a PR for it if you think it's a good feature.

It would be nice if you could configure the colours (foreground and background).

I experimented a little bit and I think I could just add:

syntax off
hi Normal ctermfg=COLOUR
hi Conceal ctermfg=COLOUR

and then syntax on at the end.

I don't know a lot about how vim handles colours, I just did some poking around in the default colour scheme files. On my vim this worked just changing ctermfg but I'm guessing guifg also needs to be set.

shtanton commented 5 years ago

I just noticed you can do this with aucmds, I can still write a PR for this if you want but it's not necessary

chemzqm commented 5 years ago

Use autocmd is recommended

shtanton commented 5 years ago

The only problem is, running syntax on breaks the colours and underlining of the linter.

Any ideas why that is?

chemzqm commented 5 years ago

For some highlights to work, you may need run highlight command after syntax on, so I don't recommend to use command for temporary highlight change.