Skip to content
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

Ability to change lint color? #871

Closed
chavlji opened this issue Feb 7, 2020 · 3 comments
Closed

Ability to change lint color? #871

chavlji opened this issue Feb 7, 2020 · 3 comments

Comments

@chavlji
Copy link

chavlji commented Feb 7, 2020

Is there a setting to change linting symbols (gutter icon, underlines) color? I hate the default white one that's too intensive and is burning my eyes...

@rwols
Copy link
Member

rwols commented Feb 7, 2020

Diagnostics (the squigly linter lines) receive standard scopes:

diagnostic_severity_scopes = {
DiagnosticSeverity.Error: 'markup.deleted.lsp sublimelinter.mark.error markup.error.lsp',
DiagnosticSeverity.Warning: 'markup.changed.lsp sublimelinter.mark.warning markup.warning.lsp',
DiagnosticSeverity.Information: 'markup.inserted.lsp sublimelinter.gutter-mark markup.info.lsp',
DiagnosticSeverity.Hint: 'markup.inserted.lsp sublimelinter.gutter-mark markup.info.suggestion.lsp'
}

So, what you have to do is make an override in a .sublime-color-scheme file for the scopes

markup.error
markup.warning
markup.info
markup.info.suggestion

These markup scopes are experimental scopes. The relevant Request For Change is here: sublimehq/Packages#1036. Information about overrding color schemes can be found here: https://www.sublimetext.com/docs/3/color_schemes.html

I don't know how you'd modify the gutter icon colors, but perhaps it's possible through modifying your sublime-theme.

@jwortmann
Copy link
Member

The gutter icon colors are affected by the foreground color setting in the color scheme for the scopes mentioned above as well.

@rwols
Copy link
Member

rwols commented Feb 20, 2020

I've added this to the notes.

@rwols rwols closed this as completed Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants