Allow buffer local settings of bop and eop

Fixes junegunn/limelight.vim#45
This commit is contained in:
Marco Herrn
2020-05-18 22:30:48 +02:00
parent 26e913a2e0
commit 3cb60931c2
2 changed files with 5 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ let g:limelight_paragraph_span = 1
" and each paragraph starts with indentation
let g:limelight_bop = '^\s'
let g:limelight_eop = '\ze\n^\s'
" These can also be set buffer-local (via filetype plugins)
let b:limelight_bop = '^\s*function'
let b:limelight_eop = '^\s*endfunction'
" Highlighting priority (default: 10)
" Set it to -1 not to overrule hlsearch