You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow turning off highlighting when on blank lines - #82
I personally don't like when Limelight highlights the paragraphs above and below my current cursor position when I'm on a blank line. I'd prefer the ability to only ever highlight paragraphs when my cursor is within the actual text, so I added this option.
I understand if it's not something you want in the plugin though, so feel free to reject. Thank you for Limelight (and your many other plugins)!
Edit: I've attached a couple of screenshots to show the difference.
I updated doc/limelight.txt, but wasn't sure if there's a specific format the parameter list is supposed to use. Let me know if I did that wrong.
Regarding short-circuiting g:limelight_paragraph_span values, I personally think that's acceptable, but I could be convinced otherwise. I suppose this could be updated to only dim all paragraphs on blank lines if g:limelight_paragraph_span isn't set, but I think the current behavior of dimming all paragraphs and then un-dimming them once the cursor is on a line with text makes sense.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I personally don't like when Limelight highlights the paragraphs above and below my current cursor position when I'm on a blank line. I'd prefer the ability to only ever highlight paragraphs when my cursor is within the actual text, so I added this option.
I understand if it's not something you want in the plugin though, so feel free to reject. Thank you for Limelight (and your many other plugins)!
Edit: I've attached a couple of screenshots to show the difference.
Before
After