mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +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' : '',
|
\ 'min_by' : '',
|
||||||
\ 'foldl' : '',
|
\ 'foldl' : '',
|
||||||
\ 'foldr' : '',
|
\ 'foldr' : '',
|
||||||
|
\ 'entrys' : '',
|
||||||
\ },
|
\ },
|
||||||
\ "function('s:' . v:key)"
|
\ "function('s:' . v:key)"
|
||||||
\ )
|
\ )
|
||||||
endfunction
|
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
|
function! s:make(keys, values, ...) abort
|
||||||
let dict = {}
|
let dict = {}
|
||||||
let fill = a:0 ? a:1 : 0
|
let fill = a:0 ? a:1 : 0
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
function! SpaceVim#layers#mail#plugins() abort
|
function! SpaceVim#layers#mail#plugins() abort
|
||||||
return [
|
return [
|
||||||
\ ['vim-mail/vim-mail',{ 'merged' : 0, 'loadconf' : 1}],
|
|
||||||
\ ]
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user