mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-12-16 05:37:07 +08:00
17 lines
477 B
VimL
17 lines
477 B
VimL
scriptencoding utf-8
|
|
|
|
let s:themes_dir = expand('<sfile>:h:h') . '/autoload/airline/themes'
|
|
let s:themes = map(glob(s:themes_dir . '/*.vim', 1, 1), 'fnamemodify(v:val, ":t:r")')
|
|
let s:suite = themis#suite('vim-airline-themes')
|
|
|
|
function! s:Test(theme)
|
|
Throws execute('AirlineTheme ' . a:theme)
|
|
endfunction
|
|
|
|
function! s:suite.__themes__()
|
|
let child = themis#suite('ExistThemes')
|
|
for theme in s:themes
|
|
let child[theme] = funcref('s:Test', [theme])
|
|
endfor
|
|
endfunction
|