vim

For discussion on all things (neo)vim.
dharrigan 2020-05-02T13:31:57.070Z

Is there a way to subtly change the background colour of the form block that the cursor is in? To visually show the scope, if you know what I mean, of the block. As you move the cursor up and down, between forms, the subtle background highlight would change shape. I know, presently, that I rest my cursor on an opening, or closing, parens, it shows it's counterpart, but I'm after showing the entire block.

dominicm 2020-05-02T13:58:54.070500Z

I've seen something for this, but I don't recall the name

dominicm 2020-05-02T13:59:03.070900Z

Might be starred, I'll have a look

Chase 2020-05-02T16:06:55.071700Z

I've been exploring clojurescript again and was curious if fireplace is able to show documentation for cljs functions and whatnot.

Chase 2020-05-03T15:20:36.075300Z

That is good to hear about no piggieback needed! Thank you.

Chase 2020-05-03T15:20:49.075500Z

Unfortunately K still doesn't work.

Chase 2020-05-03T15:20:54.075700Z

Here is the full error message I am seeing

Chase 2020-05-03T15:20:59.075900Z

Error detected while processing function <SNR>80_Doc[5]..fireplace#info[39]..firepla ce#query[10]..<SNR>80_PlatformDelegate[7]..<SNR>80_EvalQuery: line 27: E605: Exception not caught: fireplace.vim: No value in {'status': ['done'], 'id': 'b 4cec1fd-4210-4f20-4d97-5043618cdd92', 'session': ['cfa62d63-19c3-48bd-bafa-09368991a d4a'], 'err': 'Error in phase :compilation^@Unable to resolve var: special-doc in th is context at line 1 cljs/user.cljs'}

tpope 2020-05-04T06:59:09.076100Z

i can tell from the stacktrace cider-nrepl isn't active

tpope 2020-05-04T07:01:27.076300Z

i don't remember what contortions were needed to get it to load off the top of my head, but I'm pretty sure it was more than just "add it to the dependencies"

dominicm 2020-05-04T07:04:59.076500Z

Shadow automatically loads it if it's on the classpath

tpope 2020-05-04T07:06:10.076700Z

i mean i don't doubt you but does it also require a full moon or something? I recall it being sooooo fiddly

Tim Smart 2020-05-04T07:06:49.076900Z

Oh right, it just worked ™️ for me :man-shrugging:

Tim Smart 2020-05-04T07:07:49.077100Z

Compared to getting figwheel working with my vim setup it was surprisingly easy. Maybe I was battle hardened by that stage lol.

tpope 2020-05-04T07:10:04.077300Z

figwheel ... might have been worse lol

dominicm 2020-05-04T07:10:44.077500Z

https://shadow-cljs.github.io/docs/UsersGuide.html#_dependencies_3 > Shadow-CLJS will inject the required CIDER-nREPL middleware once it sees this dependency.

Chase 2020-05-02T16:07:06.071800Z

I keep getting error messages like:

Chase 2020-05-02T16:07:07.072Z

Error in phase :compilation Unable to resolve var: special-doc in this context at line 1 cljs/us er.cljs Error detected while processing function <SNR>80_Doc[5]..fireplace#i nfo[39]..fireplace#query[10]..<SNR>80_PlatformDelegate[7]..<SNR>80_E valQuery:

Chase 2020-05-02T16:07:26.072200Z

Not sure if I have to do something different or if it's just not an available feature.

dominicm 2020-05-02T16:30:01.072400Z

It is available

Chase 2020-05-02T18:10:11.072600Z

I wonder if it is because I'm starting my nrepl through shadow-cljs? I do have cider/cider-nrepl in my dependencies.

dominicm 2020-05-02T18:32:17.072800Z

It should work with shadow.

dominicm 2020-05-02T18:36:33.073Z

Do you have a cljs/user.cljs file maybe?

dominicm 2020-05-02T18:36:40.073200Z

does it work in a fresh shadow project?

Chase 2020-05-02T18:57:31.073400Z

It was a pretty vanilla shadow cljs project starter. I'm doing a tutorial

Chase 2020-05-02T18:58:22.073600Z

when I run the shadow-cljs watch app command it starts the nrepl but now I am realizing there is no repl prompt.

Chase 2020-05-02T18:58:33.073800Z

No user.cljs file either

Chase 2020-05-02T19:00:52.074Z

My workflow so far is start up the nrepl with that command (according to the tutorial guide) and then use :Connect 3333 to connect fireplace and then use :Piggieback to connect the cljs. It connects because I'm able to evaluate things and (js/alert "test") works. But just no docs. Not a huge deal but I was curious

dominicm 2020-05-02T19:01:35.074200Z

Hmm.. yes