sebdah / vim-delve

Neovim / Vim integration for Delve
MIT License
502 stars 24 forks source link

Add function to get init instructions to support vim-test #34

Closed leighmcculloch closed 5 years ago

leighmcculloch commented 5 years ago

What

Add function to get init instructions.

Why

The init instructions that the vim-delve plugin builds up that contains breakpoints, tracepoints, etc are useful to other plugins, but they are inaccessible because they are store in a script-scoped variable. Adding this function to expose the instructions allows other plugins to tap into the breakpoints, tracepoints, etc that the vim-delve plugin are tracking for the user. I'm planning on using the instructions in another plugin that's a work-in-progress.

leighmcculloch commented 5 years ago

The function being added in this PR is intended for use in janko/vim-test#385.

leighmcculloch commented 5 years ago

👋 @sebdah The PR that was dependent on this change has been merged into vim-test now actually ahead of this. How do you feel about adding this function and exposing the init instructions?

sebdah commented 5 years ago

Hi, sorry for the slow response. This looks fine to me. I'll merge :rocket:

leighmcculloch commented 5 years ago

Woohoo! Thanks @sebdah!