Fork me on GitHub
#conjure
<
2020-04-14
>
Olical11:04:59

Planning a way to get and set config values, what do you think about :ConjureCfg mappings.eval-word to get, :ConjureCfg mappings.eval-word "eW" to set

Olical11:04:16

Questions 1. ConjureCfg, ConjureConfig? I kinda prefer the short one. 2. You'd have to quote strings on the right so that unquoted could be literal Lua / Fennel values like numbers for some settings. Is that weird?

Olical11:04:17

Also if you wanted to set a language specific config you'd use :ConjureCfg clojure-nrepl mappings.disconnect "cD"

Aron11:04:40

I don't think shortening makes sense unless you have to : )

Aron11:04:09

like it doesn't fit, or someone else uses the name for something

Olical11:04:34

Mainly keeping it short because you'll probably have a lot of these bunched up together on multiple lines. I just wanted to keep it a little more compact and easy to type.

Olical11:04:43

ConjureConfiguration is a bit of a mouthful

Olical11:04:55

ConjureConfig might be okay tbh

Aron11:04:02

very much, but then I would go the other way and do Cnjfg

Aron11:04:28

that might be potentially confusing for sure 🙂

Aron11:04:55

but conjfig is even pronounceable

Aron11:04:11

engrish is hard

Aron11:04:59

OR, since conjuring is a kind of spell of summoning, you can go to the thematic way and call it scroll or something, like a magical scroll 😄

Olical11:04:40

:ConjureConfig [args]    Looks up or sets a configuration value with an
                         optional language module prefix.
                          - `:ConjureConfig mappings.prefix`
                            Show the current mapping prefix.
                          - `:ConjureConfig mapping.prefix <leader>`
                            Set the current mapping prefix.
                          - `:ConjureConfig clojure-nrepl debug? true`
                            Set a language specific configuration value.

Olical12:04:23

Ignoring the fact that the HUD appears with Clojure stuff in it (working on it) the config command works fairly well! https://asciinema.org/a/Pkyd1QGMQOCe8sGzfLGuVyHCk

Olical12:04:47

Kind of invented a syntax for specifying language and path to value, but I think it's fairly intuitive for lispy / clojure types.

Olical12:04:11

[lang/].thing value where the lang prefix is optional.

Olical12:04:35

Might rename "langs" to "impls" or implementations since you can have two implementations for Clojure (nREPL and prepl) and swap between them on projects.

Olical12:04:10

But first, I'm going to go and see if my fresh coffee has arrived. I haven't had fresh beans in days and I'm falling apart.

Olical12:04:19

(this is all on develop)

Olical14:04:33

All core config is now documented

🎉 24
🍻 8
Olical14:04:24

Going to refer to each language support module as a "client".

Olical14:04:30

Or language client.

Olical14:04:53

So Conjure has many clients which can be associated with specific filetypes. You can replace a default client with another.

👍 8