Fork me on GitHub
#conjure
<
2020-05-24
>
Olical10:05:04

I want to have a go at rewriting how nested forms are found and selected so I can implement the number prefix support for all form eval code properly.

Olical10:05:22

Which key support could be nice too!

Olical15:05:34

I've pushed some which-key support to develop for the key mappings (no support for Clojure etc yet). Use :helpg which-key.var to see the docs on how to integrate it, you basically point it at your which-key map.

🎉 4
Olical15:05:04

I can't integrate it automatically and I'm considering scrapping it entirely to be honest, I'm not a huge fan of how you set it up and how it works. Also if any keys conflict it behaves SUPER weird.

Aleksander20:05:52

I thought which key integration could be a separate small plugin

Aleksander20:05:19

conjure-which-key

Olical08:05:02

It could be, yeah, I just wanted to give implementing it a go. I think I'll git revert and at least have some of the concepts in the log for the future. I'll be removing the plugin though, I don't really have much need for it in my set-up.

Olical15:05:15

But worth a shot as atrial

Olical16:05:45

My log mappings clash with one mapping from vim-sexp which breaks all of my which-key-config hints for everything log related. The mappings all work, which-key just ignores any docs you give it if there's any kind of clash 😭 also the setup of which-key is pretty clunky, I can't see any beginners using this with Conjure to learn things (which would be the primary userbase I think). I may well remove it all and not do it, was worth an experiment, I just really like it.

👍 4
Olical16:05:56

https://asciinema.org/a/yRMWK4TkEdiTpdToWn1DC197w you can see how it works (and the weird log mapping clash) here

dharrigan17:05:29

Perhaps remove it?

Lucas Ferreira21:05:01

Hello! How can I configure log-hud-enabled? using conjure_config? I have tried "log.hud.enabled?": 0 but it does not appear to work. "log.hud.enabled?": "false" does not work either. Using :ConjureConfig log.hud.enabled? false does work. Have also tried using "ConjureConfig": {"log.hud.enabled?": false } in coc-settings.json without success.

Olical21:05:11

Oh interesting, this will be a vim <-> Lua type conversion I guess. What happens when you set it to v:false? I've been considering reworking the config system to turn it into a regular vim dict that you set in the normal way, maybe this sort of thing is a good prompt.

👍 4
Lucas Ferreira21:05:55

Cool! It seems that might be interesting. v:false works! did not know about that.

Olical08:05:44

Nice! Yeah for most vim things I think it's an alias to 0, but it's definitely a better signal. I guess it attaches some metadata so when it reaches Lua land it can convert it.