Set StartifySection via syntax file
This keeps it highlighted after 'set ft=startify' etc. References #117.
This commit is contained in:
parent
e964a581d0
commit
07e10a15a0
2 changed files with 12 additions and 11 deletions
|
@ -32,8 +32,13 @@ if exists('g:startify_custom_header')
|
|||
endif
|
||||
|
||||
if exists('g:startify_custom_footer')
|
||||
autocmd startify User Startified
|
||||
\ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/'
|
||||
execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'
|
||||
endif
|
||||
|
||||
if exists('w:startify_section_header_lines')
|
||||
for line in w:startify_section_header_lines
|
||||
execute 'syntax region StartifySection start=/\%'. line .'l/ end=/$/'
|
||||
endfor
|
||||
endif
|
||||
|
||||
highlight default link StartifyBracket Delimiter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue