zsh-syntax-highlighting
zsh-syntax-highlighting copied to clipboard
Make initial style configurable
With the main highlighter active, once I finished typing the first word in the line, it is highlighted according to whether it is i.e. a precommand, a command, a function etc.
But while I'm typing the first word, and the highlighter has not decided yet what it is, it is also coloured somehow. Is there a way to configure this initial style?
BTW, I found that main-highlighter.zsh defines a
: ${ZSH_HIGHLIGHT_STYLES[default]:=none}
but I don't think that this is used for the initial style, because the colour is different from the normal foreground colour of my terminal program.
But while I'm typing the first word, and the highlighter has not decided yet what it is, it is also coloured somehow. Is there a way to configure this initial style?
Currently, an incomplete command word is rendered as unknown-token, same as all other errors. There are multiple other issues about customizing this, e.g., #695 #148.
The default style is never used for the command word.