conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
dharrigan 2020-09-22T09:38:38.036700Z

3
❀️ 1
✨ 1
dharrigan 2020-09-22T09:38:40.037100Z

Ooooh

Olical 2020-09-22T09:42:48.037400Z

I'm glad they arrived okay! Although I'm very sorry they're not super sticky at the edges, I think the firmness of the stickers doesn't lend itself to staying put. If you wanna just keep them as little historical things I suppose that's nice too πŸ™‚

dharrigan 2020-09-22T09:46:33.037700Z

Yup. Don't worry, they will be perfect next time πŸ™‚

dharrigan 2020-09-22T09:46:55.037900Z

also, a bit of pritt stick can help πŸ™‚

Olical 2020-09-22T09:55:23.038100Z

True! Although it's only right at the edges in like 1-2 corners where it lifts up a little bit, so they stay on fine, it's just not totally flush on some of them at the edges.

Olical 2020-09-22T09:55:37.038300Z

So it's not actually that bad tbh I don't think

Olical 2020-09-22T09:55:50.038500Z

I wonder how long all of the others will take to arrive, one is on it's way to Brazil πŸ˜…

2020-09-22T11:27:04.038800Z

mine arrived yesterday, I think. I just found the envelope on the hall : )

Olical 2020-09-22T11:30:22.039Z

If it's got a five year olds hand writing on it, it's mine :D

2020-09-22T12:24:13.042800Z

Is anyone else using deoplete with Conjure? I’m finding it very laggy. It’s not just that the completions take some time to come up, but Vim seems to periodically hang for short amounts of time (like half a second) while I’m typing. Typing a space makes it happen pretty predictably, e.g. if I quickly type (ab c the editor hangs at (ab for a split second before spitting out the c.

2020-09-22T12:27:34.044600Z

I’ve tried this in a few other languages and they don’t seem have the same problem.

2020-09-22T12:28:02.045100Z

I don’t know whether this is a problem with my config or just the nature of deoplete+Conjure.

Olical 2020-09-22T12:38:34.045200Z

I think if you let g:conjure#client#clojure#nrepl#completion#with_context = v:false it'll all go away

Olical 2020-09-22T12:38:41.045400Z

And I might make this the default soon

Olical 2020-09-22T12:39:18.045600Z

As you type I'm having to grab the surrounding forms to give to the completion tooling to find local variables, but that's slow because of how vim searches for pairs

Olical 2020-09-22T12:39:37.045800Z

I think it's arguably not very useful either, so I think I'm going to turn this off since it's slow for me in some envs too.

πŸ‘ 1
Olical 2020-09-22T12:45:06.046300Z

> I think if you let g:conjure#client#clojure#nrepl#completion#with_context = v:false it'll all go away (from thread for others that find typing slow)

dharrigan 2020-09-22T13:11:50.046600Z

interesting

2020-09-22T13:14:39.046900Z

Wow, awesome, it works! Thanks!

nate 2020-09-22T15:59:01.048600Z

The long result folding is great, I missed that since the rewrite. I did find one small issue.

nate 2020-09-22T15:59:18.048700Z

sometimes, my data has high levels of nesting

nate 2020-09-22T15:59:45.048900Z

and then the ending marker (`}}}`) shows up in the data itself

nate 2020-09-22T15:59:56.049100Z

and so the folding cuts off earlier

nate 2020-09-22T16:00:00.049300Z

example:

nate 2020-09-22T16:00:09.049500Z

#_{:foo1 1
   :foo2 2
   :foo3 3
   :foo4 4
   :foo5 {:bar1 1
          :bar2 2
          :bar3 3
          :bar4 4
          :bar5 {:baz1 1
                 :baz2 2
                 :baz3 3
                 :baz4 4
                 :bar5 {:baz1 1
                        :baz2 2
                        :baz3 3
                        :baz4 4
                        :baz5 5}}}
   :ff :ff}

nate 2020-09-22T16:00:49.049800Z

nate 2020-09-22T16:01:06.050200Z

the }}} on the second to last line is seen as the ending marker

nate 2020-09-22T16:01:31.050400Z

perhaps using \\\ and /// as markers would have less potential for conflict?

nate 2020-09-22T16:03:32.050600Z

hacking my log.lua file and using slashes and backslashes seems to work

Olical 2020-09-22T16:18:59.050800Z

Ah of course! That's just the default folding marker in vim, I'll swap it to something a little more unique

Olical 2020-09-22T16:21:44.052600Z

I'll probably perform that with_context = v:false by default in the next version, I think it's not very useful but it hits performance hard due to the way nvim searches for matching characters in large buffers. Again, this thing will be super easy and fast once tree sitter is everywhere since I can delete all of the slow character by character hunting code.

Olical 2020-09-22T16:22:08.053Z

I think vim-sexp is pretty quick though, so maybe I could look at how they're doing things for now :thinking_face:

Olical 2020-09-22T16:22:13.053200Z

More things for the todo pile!

nate 2020-09-22T16:25:55.053300Z

awesome, thank you

Olical 2020-09-22T17:36:09.054Z

with_context is now false by default for Clojure completion, you probably won't notice a difference other than your typing will be faster, so, yay!?

πŸ‘ 1
Olical 2020-09-22T17:36:46.054900Z

Also fixed the fold markers on develop (both of these changes are on develop) @nate, it's now ~~~%{,}%~~~ and it's configurable.

Olical 2020-09-22T17:37:00.055300Z

Through let g:conjure#log#fold#marker#start/end = "..."

nate 2020-09-22T17:41:23.056400Z

@olical just tried it out, works great! nice choice of marker, I doubt that will ever show up in data.

nate 2020-09-22T17:41:30.056600Z

thank you

Olical 2020-09-22T17:42:12.057Z

I hope not πŸ˜… it's the most interesting I could think of without it being toooo over the top

dave 2020-09-22T17:50:04.057900Z

~~~attn-this-is-a-fold-created-by-conjure%{,}%that~is~all~thank~you~~~

πŸ˜† 2