mirror of
https://github.com/junegunn/limelight.vim.git
synced 2025-11-17 07:23:38 -05:00
Compare commits
2 Commits
master
...
24d86ddb1a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24d86ddb1a | ||
|
|
3cb60931c2 |
@@ -65,6 +65,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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user