junegunn / junegunn/limelight.vim
Different spans for beginning and end of paragraphs
Open
- Dominant language
- Vim Script
- Stars
- 2.5k
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
Title has it, but just to elaborate, I was trying to make Limelight highlight the comments and the function block. I have this following snippet:
```vim
let g:limelight_bop = '\(\n\n^\/\/ .*\n\|^\w.*\(:\|{\|)\)\n\)'
let g:limelight_eop = '\(\n\n\/\/\|^\p\n\n\)'
```
The issue is the `bop` regex has 2 results, which means to grab the comments as well, the span needs to be 1. However, if `1` is used for the span of `eop`, the second code block will be included as well.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.