Fork me on GitHub
#conjure
<
2020-09-22
>
dharrigan09:09:38

9
❤️ 3
3
Olical09:09:48

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 🙂

dharrigan09:09:33

Yup. Don't worry, they will be perfect next time 🙂

dharrigan09:09:55

also, a bit of pritt stick can help 🙂

Olical09:09:23

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.

Olical09:09:37

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

Olical09:09:50

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

mamapitufo11:09:04

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

Olical11:09:22

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

jkrasnay12:09:13

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.

jkrasnay12:09:34

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

jkrasnay12:09:02

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

Olical12:09:34

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

Olical12:09:41

And I might make this the default soon

Olical12:09:18

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

Olical12:09:37

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.

👍 3
Olical12:09:06

> 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)

jkrasnay13:09:39

Wow, awesome, it works! Thanks!

nate15:09:01

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

nate15:09:18

sometimes, my data has high levels of nesting

nate15:09:45

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

nate15:09:56

and so the folding cuts off earlier

nate16:09:00

example:

nate16:09:09

#_{: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}

nate16:09:06

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

nate16:09:31

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

nate16:09:32

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

Olical16:09:59

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

nate16:09:55

awesome, thank you

Olical16:09:44

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.

Olical16:09:08

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

Olical16:09:13

More things for the todo pile!

Olical17:09:09

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!?

👍 3
Olical17:09:46

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

Olical17:09:00

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

nate17:09:23

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

nate17:09:30

thank you

Olical17:09:12

I hope not 😅 it's the most interesting I could think of without it being toooo over the top

dave17:09:04

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

😆 6