tsuyoshicho / vim-pass

Vim password-store API
https://tsuyoshicho.github.io/vim-pass/
MIT License
3 stars 0 forks source link

feat: setup call lambda #19

Closed tsuyoshicho closed 5 years ago

tsuyoshicho commented 5 years ago

set like this

https://github.com/kyoh86/vim-docbase

let g:docbase = [
  \ { 'domain': 'example', 'token': '1b_z85n.83hrwefsv9cxm8ihwaemsv9p283rih' },
  \ { 'domain': 'sample', 'token': '1f_a89x.oo08yudfsjawofaj8hiqwnskljweiu' }
  \ ]

example.

call pass#get_setup_lambda('key',{v -> let g:docbase[0].token = a:v})

# To organize, if necessary function IF