Fork me on GitHub
#vim
<
2019-10-22
>
gabor.veres10:10:27

Hi All, I'm relatively new to vim so I might miss something trivial here, but here's my question. Watching the interactive demos on parinfer's site, https://shaunlebron.github.io/parinfer/, the built-in editor seems to override Tab behavior in a smart way. Pressing Tab or S-Tab (un)indents the line by variable colums, placing the content where it "makes sense", such as aligning it with different parts of the form above. Starting from this (defn component [] (html [:div {:style {:background "#FFF"}} :color "#000" [:h1 "title"]])) pressing Tab with the caret before ":color" will first align it with the "{" above, then with ":style", then "{", then ":background", skipping all colum positions that don't make sense. I think this is extremely powerful in a lot of ways - Is this achievable with vim? I've tried the different parinfer implementations (vim-parinfer, parinfer-rust), but no luck so far. Thanks!

dominicm10:10:03

I don't think attempts at smart indenting have gone well. I want to say lack of apis in vim, but I'm not certain.

šŸ‘ 4
martinklepsch11:10:05

When my Fireplace is connected to a clj REPL but Iā€™m in a cljs buffer, is there an easy way to run clj forms? It seems that cqc will assume the current buffer filetype, eventually complaining that there is no cljs repl

martinklepsch11:10:29

What I want to run is just something like (user/node-repl) that will turn my clj REPL into a cljs REPL

Jan K12:10:06

@martinklepsch You can use :CljEval <expr>

martinklepsch12:10:37

@jkr.sw ah sweet, thank you!

martinklepsch13:10:25

Iā€™m noticing some issues with a cljs repl where once there is an error all subsequent form evaluations will stall/time out ā€” is that a problem someone has had before? Iā€™m not sure if its fireplace or shadow-cljs

dominicm14:10:56

That might be something I've experienced

dominicm14:10:05

Wasn't certain of the cause

dominicm14:10:04

I experience it in the browser

zyxmn15:10:28

Hey fellas, is there anything that I can use that will pretty print fireplace eval results.

dominicm15:10:04

They are pretty for me

dominicm15:10:25

What's your setup? You need latest nrepl

zyxmn17:10:28

Just realised I am not using cider-nrepl at all, but can't use the latest cider-nrepl version since the most recently stable lein version for ubuntu is 2.8.1 and cider-nrepl needs 2.8.3

dominicm17:10:21

use arch linux, it's the standard šŸ˜‰

dominicm17:10:47

Yeah, there's some issues getting updated lein into ubuntu atm.

dominicm17:10:01

updating leiningen would make pretty printing work, without cider-nrepl required

zyxmn17:10:08

work laptop

dominicm17:10:37

not the laptop juxt gave you?

zyxmn17:10:07

just trying to find old versions of cider and running lein deps hoping its compatible with lein

dominicm17:10:17

that's not going to work

dominicm17:10:35

the pretty printing was a new feature in a new version of nrepl. Not cider-nrepl.

dominicm17:10:54

New nrepl versions aren't compatible with older lein versions.

dpsutton17:10:24

can you get lein by following the install instructions from https://leiningen.org rather than using your distribution package manager?

dpsutton17:10:07

then you can use lein to upgrade itself

zyxmn19:10:43

@dpsutton yep did that now . Followed the manual installation here https://purelyfunctional.tv/guide/how-to-install-clojure/ . ~/bin/ wasn't in my $PATH and was struggling with that. Now I have the latest nrepl and fireplace macroexpansion is pretty print enough for me now šŸ˜„ . Thanks @dominicm