This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-18
Channels
- # announcements (6)
- # babashka (16)
- # beginners (194)
- # calva (20)
- # cider (34)
- # clj-kondo (38)
- # clojure (89)
- # clojure-europe (10)
- # clojure-finland (15)
- # clojure-italy (2)
- # clojure-nl (15)
- # clojure-sg (7)
- # clojure-spec (15)
- # clojure-uk (86)
- # clojurebridge (1)
- # clojurescript (60)
- # community-development (11)
- # conjure (13)
- # core-async (48)
- # core-typed (3)
- # cursive (22)
- # datascript (8)
- # datomic (40)
- # duct (11)
- # emacs (3)
- # figwheel-main (22)
- # fulcro (45)
- # graphql (1)
- # helix (9)
- # hoplon (15)
- # hugsql (7)
- # jobs-discuss (47)
- # juxt (7)
- # kaocha (21)
- # luminus (1)
- # malli (13)
- # meander (2)
- # off-topic (52)
- # parinfer (19)
- # re-frame (66)
- # reagent (1)
- # reitit (3)
- # ring-swagger (1)
- # rum (2)
- # shadow-cljs (72)
- # spacemacs (5)
- # sql (4)
- # timbre (5)
- # tools-deps (15)
- # vim (5)
- # vrac (7)
@olical, I was trying to upgrade using Plug 'Olical/conjure', {'tag': 'v3.5.0'}
as per the README. And I got fatal: invalid reference: v3.5.0
. Looking at the releases page, it looks like you tagged it to v3.6.0: https://github.com/Olical/conjure/releases
Good catch, thank you! I've corrected it to v3.5.0, I got mixed up in my version bumping!
Cheers Oli!
So that
{
false 0.3
true 3
}
behaviour is known and expected. If you're importing nvim values into lua you need to duck type check for a table that looks like this and take the false value if so.
Check out :h vim.types
for more info on this. Hopefully this is the only roadblock in getting config into g:conjure
, I've already paved over it(defn get-in [ks]
(let [v (a.get-in (root) ks)]
(if (and (a.table? v)
(. v vim.type_idx)
(. v vim.val_idx))
(. v vim.val_idx)
v)))
Hmm, second thought, nested maps are probably awful to work with for setting config in viml.
Counter point: If you're setting config before conjure loads you can just do let g:conjure = { ... }
and nest as much as you want. Then if Conjure is already loaded all of the dicts will already be defined, so let g:conjure.foo.bar.baz = ...
should be fine too.
I think I have to find a way to have a flat map, so instead of setting g:conjure.foo.bar you’d set g:conjure_foo_bar.
Also the wiki is now editable by anyone, go wild if you want to add more articles / guides / info. I’m totally okay with you adding your own blog posts there.
Thinking of mapping all config into flat global values, like g:conjure_mapping_prefix
, I think this is the simplest approach for users.