X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d6c1a4935fbd3f1f1a37f442693b84b78bdc8575..a8037bb8cc8b46d506e43005acebb1e96e090ae5:/autoload/password_store.vim diff --git a/autoload/password_store.vim b/autoload/password_store.vim index 9e3c5b6..d8ebedc 100644 --- a/autoload/password_store.vim +++ b/autoload/password_store.vim @@ -19,4 +19,18 @@ function! password_store#replace() abort execute 's/\<.*\>/' . password_store#generate() . '/' endfunction +let s:default_settings = { + \ 'pw_length' : '12', + \ 'enable_syntax' : 'true', + \ } + +function! password_store#setting(key) + if exists('g:password_store_settings') && has_key(g:password_store_settings, a:key) + echo 'found key' + return g:password_store_settings[a:key] + else + return s:default_settings[a:key] + endif +endfunction + let &cpoptions = s:save_cpo