Skip to content

Lazy loading vimspector #531

Answered by wbthomason
OmriLevy888 asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome! I have a few comments:

  • First of all, did you run PackerSync after saving your changes? If vimspector was originally a start plugin, you need this (or PackerCompile + PackerUpdate independently) to build the lazy-loader and move vimspector to the opt plugin dir.
  • Second, I would suggest using the fn key instead of cmd, as in fn = 'vimspector#Launch'. This more closely matches your desired load conditions, and I do not believe that the command you've specified would work anyway (cmd is for command names rather than commands with specific arguments).
  • Finally, we do not support unloading plugins - we'd need some way to "un-source" Vimscript files, which I'm not aware of any way to do…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OmriLevy888
Comment options

Answer selected by OmriLevy888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants