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

How to stop highlighting character in normal mode #203

Open
nikitavoloboev opened this issue Jun 8, 2018 · 2 comments
Open

How to stop highlighting character in normal mode #203

nikitavoloboev opened this issue Jun 8, 2018 · 2 comments
Labels
area:ui Issues related to UI and UI configuration. limitation reference waiting
Milestone

Comments

@nikitavoloboev
Copy link

nikitavoloboev commented Jun 8, 2018

When I hover over a character in normal mode. Like here I am hovering over S char:

2018-06-08 at 14 08

Is it possible to turn off it highlighting the character in grey color. And only start highlighting it when I go in VISUAL mode and highlight more than one char?

I believe I had this before but I tried out Monokai Pro theme and then later changed back to Ayu and I have this now and it's annoying me. 😞

@guillermooo
Copy link
Owner

guillermooo commented Jun 9, 2018

I don't change themes much, only color schemes when the lighting conditions require it, so I wouldn't know about themes impacting the fake block cursor appearance.

As far as I know, the block cursor implementation in ST is sadly very lacking and I don't think you can control any aspect of it beyond some padding. Since I only know the basics about themes and color schemes, I can't really figure out easily if this is something that can be modified or not, but Six doesn't style the caret in any way that I can recall. It simply switches from insert mode to command mode, which triggers the changes in the way the caret is drawn.

What I've observed is that by setting highlight_line to true in your User/Default.sublime-settings, the caret's background color blends with the line's background color.

image

If I set that option to false, I get approximately the same as you:

image

@guillermooo guillermooo added this to the Waiting milestone Jun 9, 2018
@guillermooo guillermooo added area:ui Issues related to UI and UI configuration. reference labels Jun 9, 2018
@DrBones
Copy link

DrBones commented Jun 19, 2018

This, is sadly very true. The blockcursor implementation is more of a hack than a supported Sublime Text feature. Hopefully they implement a proper way to customize is at some point :)!

Until then, there are certain combinations of the selection and line_highlight alpha values that produce different styles of cursors. @gerardroche had some very insightful things to say over at the Neovintagous repo here: NeoVintageous/NeoVintageous#342

It boils down to @guillermooo's solution to setting the line_highlight in your theme file to something without alpha value (for my case only 3 hex numbers). Something like this:

<key>lineHighlight</key>
        <string>#c3c3c3</string>

Note that the newer theme and syntax files have a much nicer syntax but the the mehtod is the same, make sure that the line_highlight has only three color values!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ui Issues related to UI and UI configuration. limitation reference waiting
Projects
None yet
Development

No branches or pull requests

3 participants