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)
Anthony Khong 2020-10-14T02:28:59.155600Z

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 😄

Olical 2020-10-14T10:38:02.158500Z

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:

👍 1
victorb 2020-10-14T08:11:07.158Z

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

2020-10-14T16:20:57.160Z

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

Olical 2020-10-14T16:47:35.161800Z

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?

Olical 2020-10-14T16:47:40.162Z

Use true and false in fennel

2020-10-14T16:50:40.162600Z

so inside of my vimrc? use 'true'?

2020-10-14T16:51:13.163Z

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

Olical 2020-10-14T16:52:09.163600Z

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

Olical 2020-10-14T16:52:18.163900Z

Sorry if I wasn't clear 😬

Olical 2020-10-14T16:52:23.164100Z

It's a confusing topic

Olical 2020-10-14T16:52:43.164800Z

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

berkeleytrue 2020-10-14T16:56:42.165400Z

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

Olical 2020-10-14T17:40:15.166200Z

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?

Olical 2020-10-14T17:40:47.166700Z

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

Olical 2020-10-14T17:41:00.167Z

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

2020-10-14T17:48:14.167100Z

Thanks!