Specify minpac#add defaults in minpac#init
averms opened this issue ยท 1 comments
averms commented
I install all my plugins in opt
so this would make it my init.vim cleaner ๐.
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 just extend
it with the
config specified in each minpac#add
call.
It would turn this:
fun! MinpacInit() abort
packadd minpac
call minpac#init({'dir': $HOME . '/.local/share/nvim/site'})
call minpac#add('k-takata/minpac', {'type': 'opt'})
call minpac#add('Shougo/neosnippet.vim', {'type': 'opt'})
call minpac#add('a-vrma/black-nvim', {'type': 'opt'})
...
endfun
into this:
fun! MinpacInit() abort
packadd minpac
call minpac#init({'dir': $HOME . '/.local/share/nvim/site',
\ 'defaults': {'type': 'opt'}})
call minpac#add('k-takata/minpac')
call minpac#add('Shougo/neosnippet.vim')
call minpac#add('a-vrma/black-nvim')
...
endfun