Add StartifySelect highlight group
This commit is contained in:
parent
03de6ee94d
commit
236e3e9ea2
|
@ -484,24 +484,29 @@ COLORS *startify-colors*
|
|||
You can overwrite the highlight groups used by startify. The plugin defines
|
||||
these groups:
|
||||
|
||||
StartifyBracket [,]
|
||||
StartifyFile the actual file
|
||||
StartifyFooter the custom footer
|
||||
StartifyHeader the custom header
|
||||
StartifyNumber the numbers between []
|
||||
StartifyPath the path to a file
|
||||
StartifySection section headers
|
||||
StartifySlash slashes in paths
|
||||
StartifySpecial <empty buffer>,<quit>
|
||||
Highlight group | Description | Default
|
||||
------------------------------------------------------------------
|
||||
| |
|
||||
StartifyBracket | [,] | linked to Delimiter
|
||||
StartifyFile | the actual file | <none>
|
||||
StartifyFooter | the custom footer | linked to Normal
|
||||
StartifyHeader | the custom header | linked to Normal
|
||||
StartifyNumber | the numbers between [] | linked to Number
|
||||
StartifyPath | the path to a file | <none>
|
||||
StartifySection | section headers | linked to Special
|
||||
StartifySelect | selected entries | linked to Title
|
||||
StartifySlash | slashes in paths | <none>
|
||||
StartifySpecial | <empty buffer>,<quit> | <none>
|
||||
|
||||
Example: (my terminal emulator supports 256 colors)
|
||||
>
|
||||
hi StartifyBracket ctermfg=240
|
||||
hi StartifyFooter ctermfg=111
|
||||
hi StartifyHeader ctermfg=203
|
||||
hi StartifyNumber ctermfg=215
|
||||
hi StartifyPath ctermfg=245
|
||||
hi StartifySlash ctermfg=240
|
||||
highlight StartifyBracket ctermfg=240
|
||||
highlight StartifyFooter ctermfg=240
|
||||
highlight StartifyHeader ctermfg=114
|
||||
highlight StartifyNumber ctermfg=215
|
||||
highlight StartifyPath ctermfg=245
|
||||
highlight StartifySlash ctermfg=240
|
||||
highlight StartifySpecial ctermfg=240
|
||||
<
|
||||
==============================================================================
|
||||
FAQ *startify-faq*
|
||||
|
|
|
@ -13,10 +13,16 @@ let s:sep = startify#get_separator()
|
|||
|
||||
syntax sync fromstart
|
||||
|
||||
syntax match StartifyBracket /.*\%9c/ contains=
|
||||
\ StartifyNumber,
|
||||
\ StartifySelect,
|
||||
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
||||
syntax match StartifyBracket /.*\%9c/ contains=StartifyNumber
|
||||
syntax match StartifyNumber /^\s*\zs[^BSVT]*\]\ze\s/hs=s+1,he=e-1
|
||||
syntax match StartifyFile /.*/ contains=StartifyBracket,StartifyNumber,StartifyPath,StartifySpecial
|
||||
syntax match StartifyNumber /^\s*\[\zs[^BSVT]*\ze\]/
|
||||
syntax match StartifySelect /^\s*\[\zs[BSVT]*\ze\]/
|
||||
syntax match StartifyFile /.*/ contains=
|
||||
\ StartifyBracket,
|
||||
\ StartifyPath,
|
||||
\ StartifySpecial,
|
||||
|
||||
execute 'syntax match StartifySlash /\'. s:sep .'/'
|
||||
execute 'syntax match StartifyPath /\%9c.*\'. s:sep .'/ contains=StartifySlash'
|
||||
|
@ -31,10 +37,11 @@ if exists('g:startify_custom_footer')
|
|||
\ autocmd! startify User
|
||||
endif
|
||||
|
||||
highlight default link StartifyHeader Normal
|
||||
highlight default link StartifyFooter Normal
|
||||
highlight default link StartifyBracket Delimiter
|
||||
highlight default link StartifyFooter Normal
|
||||
highlight default link StartifyHeader Normal
|
||||
highlight default link StartifyNumber Number
|
||||
highlight default link StartifySection Special
|
||||
highlight default link StartifySelect Title
|
||||
|
||||
let b:current_syntax = 'startify'
|
||||
|
|
Loading…
Reference in a new issue