junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Custom syntax and highlight color #218

Open mgdreamingstar opened 4 years ago

mgdreamingstar commented 4 years ago

I'm using a custom plugin called zenroom2 which changes the colorscheme when entering goyo. The plugin has set a callback function that tries to set custom syntax and highlight color. However, goyo can't recognize the color I set, such as #F2EDCA, which is changed to #FFFF00. What're the steps when going in goyo mode? Am I doing this right?

mgdreamingstar commented 4 years ago

In a Goyo callback function, color setting such as hi normal #abcdef doesn’t set the color correctly. However in ex mode after goyo launched, this color can be set correctly.