Closed averms closed 6 months ago
Just realized this is related to #68, in any case my solution was the following:
fun! s:pac_add(url, ...) abort
" Wraps minpac#add with type: 'opt' as default.
let l:options = get(a:000, 0, {})
call minpac#add(a:url, extend({'type': 'opt'}, options, 'force'))
endfun
I install all my plugins in
opt
so this would make it my init.vim cleaner :smile:.I'm willing to submit a patch and I don't think it would be too complex: add a config key in
minpac#init
called 'defaults' and justextend
it with the config specified in eachminpac#add
call.It would turn this:
into this: