mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:20:06 +08:00
Add entrys func for data#dict api
This commit is contained in:
parent
f98b16e2a3
commit
4f7836c7f7
@ -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
|
||||
|
@ -1,6 +1,5 @@
|
||||
function! SpaceVim#layers#mail#plugins() abort
|
||||
return [
|
||||
\ ['vim-mail/vim-mail',{ 'merged' : 0, 'loadconf' : 1}],
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user