mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
28 lines
913 B
VimL
28 lines
913 B
VimL
|
|
function s:LoadPlugins()
|
|
if exists("g:loaded_matchit")
|
|
let b:match_ignorecase = 0
|
|
let b:match_words=
|
|
\ '\<\%(do\|enum\|record\|function\|if\)\>:' .
|
|
\ '\<\%(return\|else\|elseif\)\>:' .
|
|
\ '\<end\>,' .
|
|
\ '\<repeat\>:\<until\>'
|
|
endif
|
|
if exists("g:loaded_endwise")
|
|
let b:endwise_addition = 'end'
|
|
let b:endwise_words = 'function,do,then,enum,record'
|
|
let b:endwise_pattern = '\zs\<\%(then\|do\)\|\(\%(function\|record\|enum\).*\)\ze\s*$'
|
|
let b:endwise_syngroups = 'tealFunction,tealDoEnd,tealIfStatement,tealRecord,tealEnum'
|
|
endif
|
|
|
|
if exists("g:colors_name") && g:colors_name == "dracula"
|
|
hi! link tealTable DraculaFg
|
|
hi! link tealFunctionArgName DraculaOrangeItalic
|
|
hi! link tealSelf DraculaPurpleItalic
|
|
hi! link tealBuiltin DraculaCyan
|
|
hi! link tealGeneric DraculaOrangeItalic
|
|
endif
|
|
endfunction
|
|
|
|
autocmd FileType teal call s:LoadPlugins()
|