zsh-syntax-highlighting icon indicating copy to clipboard operation
zsh-syntax-highlighting copied to clipboard

Make initial style configurable

Open rovf opened this issue 5 years ago • 1 comments

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.

rovf avatar Oct 12 '20 09:10 rovf

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.

danielshahaf avatar Oct 12 '20 13:10 danielshahaf