1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00

Add entrys func for data#dict api

This commit is contained in:
wsdjeg 2017-10-18 19:50:38 +08:00
parent f98b16e2a3
commit 4f7836c7f7
2 changed files with 9 additions and 1 deletions

View File

@ -10,11 +10,20 @@ function! SpaceVim#api#data#dict#get() abort
\ 'min_by' : '',
\ 'foldl' : '',
\ 'foldr' : '',
\ 'entrys' : '',
\ },
\ "function('s:' . v:key)"
\ )
endfunction
function! s:entrys(dict) abort
let entrys = []
for key in keys(a:dict)
call add(entrys, {key : a:dict[key]})
endfor
return entrys
endfunction
function! s:make(keys, values, ...) abort
let dict = {}
let fill = a:0 ? a:1 : 0

View File

@ -1,6 +1,5 @@
function! SpaceVim#layers#mail#plugins() abort
return [
\ ['vim-mail/vim-mail',{ 'merged' : 0, 'loadconf' : 1}],
\ ]
endfunction