Fork me on GitHub
#conjure
<
2020-10-14
>
Anthony Khong02:10:59

On the existing buffer, same here, my expectation would be that it appends to the existing buffer and better yet if it could scroll to the bottom as well 😄

Olical10:10:02

Hmm now we're getting into the realms of what I could add as configuration. Behaviour of the log/hud when a message appears and you can't see it, there could be 2-3 behaviours :thinking_face:

👍 3
victorb08:10:07

Thanks @olical, it certainly makes sense now when I know it, was just hard to understand why at first. I quite like the behavior as-is (as it's appending to the existing buffer but not scrolling down). Maybe adding a message "This window was opened as the log buffer cursor was not at EOF" to the repl window could help first-timers understand why it opened

uwo16:10:57

when setting flags, should we be using 'true' or v:true, or does it matter?

Olical16:10:35

Vim Script didn't support booleans originally, so there is no true or false. v:true and v:false are the ones to use in viml these days but I think they map to 0 and 1 in some cases?

Olical16:10:40

Use true and false in fennel

uwo16:10:40

so inside of my vimrc? use 'true'?

uwo16:10:13

errr. in the context of, for example, let g:conjure#client#clojure#nrepl#completion#with_context='false'

Olical16:10:09

Nope that's = v:false because it's vim script

Olical16:10:18

Sorry if I wasn't clear 😬

Olical16:10:23

It's a confusing topic

Olical16:10:43

I think you can set it to 0 too and get the same result. You don't want to use a string of false though since that's truthy

berkeleytrue16:10:42

I just use 0 and 1 for flags. Didn't even know about the v:true or v:false variables

Olical17:10:15

Yeah, they work fine too, I think v:true magically ends up being true in lua rather than 1 somehow too. Sometimes. It must attach some extra metadata or something?

Olical17:10:47

I like using v:true and v:false over 0 and 1 just for clarity.

Olical17:10:00

I think there's also a v:null but who knows what that means...