conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Avoid autoconnect when file is opened

Open ekaitz-zarraga opened this issue 1 year ago • 5 comments

Hi,

I've been looking in the documentation but I can't find a good way to prevent conjure from autoconnecting. I just want to activate conjure manually, because I use many scheme/lisp files as configuration and it's automatically loading a mit scheme shell (wrongly even, because it's not installed). I just want it disable the behavior until I selectively switch it on in certain cases.

Is this possible?

ekaitz-zarraga avatar Jul 05 '22 21:07 ekaitz-zarraga

Hey! I don't think any client has an option for this yet but it wouldn't be hard to add. Which client are you talking about specifically? Is this mostly Scheme or any client?

Olical avatar Jul 05 '22 21:07 Olical

I'd love to do this globally. Keep conjure inactive until I selectively run it.

ekaitz-zarraga avatar Jul 05 '22 21:07 ekaitz-zarraga

Until I get a chance to add an option for every client, I think the best approach would be to use any lazy loading systems your plugin manager has. I remember with vim-plug I could load a plugin with a certain command, so you would set command = ConjureConnect then when you invoked ConjureConnect for the first time it loaded the plugin and executed the command.

That might be the best stop gap for now.

Olical avatar Jul 05 '22 21:07 Olical

I'll have a look at adding an option for this asap though! Making all of the clients a little more passive with one option would be good.

Olical avatar Jul 05 '22 21:07 Olical

Thanks a lot!

ekaitz-zarraga avatar Jul 05 '22 21:07 ekaitz-zarraga

This is on develop! Sorry it took a while! let g:conjure#client_on_load = v:false should do the trick.

Olical avatar Aug 14 '22 12:08 Olical