Skip to content

Make initial style configurable #770

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

Open
rovf opened this issue Oct 12, 2020 · 1 comment
Open

Make initial style configurable #770

rovf opened this issue Oct 12, 2020 · 1 comment
Labels

Comments

@rovf
Copy link

rovf commented Oct 12, 2020

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.

@danielshahaf
Copy link
Member

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.

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

No branches or pull requests

2 participants