Skip to content

Allow turning off highlighting when on blank lines - #82

Open
benbusby wants to merge 2 commits into
junegunn:masterfrom
benbusby:master
Open

benbusby wants to merge 2 commits into
junegunn:masterfrom
benbusby:master

Conversation

@benbusby

@benbusby benbusby commented Aug 20, 2026 •

Copy link
Copy Markdown

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

before

After

after

@junegunn

Copy link
Copy Markdown
Owner

I see, I don't see a way to achieve this using the existing configuration parameters. Could you update doc/limelight.txt as well?

BTW, do you think it's acceptable this short-circuits positive g:limelight_paragraph_span values?

@benbusby

Copy link
Copy Markdown
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants