Allow a statically configured list of gadgets

Useful for storing config in source control
This commit is contained in:
Ben Jackson 2020-07-23 16:25:04 +01:00
commit 8f5b928e4b
5 changed files with 57 additions and 18 deletions

View file

@ -325,6 +325,19 @@ If the installation is successful, the output window is closed (and the output
lost forever). Use a `!` to keep it open (e.g. `:VimspectorInstall! --verbose
--all` or `:VimspectorUpdate!` (etc.).
If you know in advance which gadgets you want to install, for example so that
you can reproduce your config from source control, you can set
`g:vimspector_install_gadgets` to a list of gadgets. This will be used when:
* Running `:VimspectorInstall` with no arguments, or
* Running `:VimspectorUpdate`
For example:
```viml
let g:vimspector_install_gadgets = [ 'debugpy', 'vscode-cpptools', 'CodeLLDB' ]
```
### install\_gadget.py
By default `install_gadget.py` will overwrite your `.gadgets.json` with the set