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

@@ -44,7 +44,9 @@ endfunction
function! s:getpos()
let bop = get(g:, 'limelight_bop', '^\s*$\n\zs')
let bop = get(b:, 'limelight_bop', bop)
let eop = get(g:, 'limelight_eop', '^\s*$')
let eop = get(b:, 'limelight_eop', eop)
let span = max([0, get(g:, 'limelight_paragraph_span', 0) - s:empty(getline('.'))])
let pos = exists('*getcurpos')? getcurpos() : getpos('.')
for i in range(0, span)