vim

For discussion on all things (neo)vim.
jeremyvdw 2020-05-29T11:06:42.135500Z

Hi there, I’m seeing a strange behaviour on a very basic shadow-cljs app with vim, fireplace and cider-nrepl: I can eval s-expr with cpp, get doc with K and so on, but when I’m saving my file, the buffer is wiped out entirely. Has anyone already saw this behaviour?

jeremyvdw 2020-05-31T15:03:21.136200Z

it only happens when connected to cljs nREPL, it’s ok with clj nREPL

jeremyvdw 2020-05-31T15:05:47.136500Z

@noisesmith but you’re probably right on Eval! because, on syntax error, the buffer is replaced with the error output from cljs

jeremyvdw 2020-06-01T08:17:14.136700Z

There I fixed it (kind of): I was using :FireplaceConnect and then :CljEval (shadow/repl :app). This is wrong, using :Piggieback app does the trick

2020-06-01T14:41:10.136900Z

Awesome, glad to hear it's sorted

jeremyvdw 2020-06-01T14:44:27.137100Z

Thanks anyway for giving it a though! 👍

2020-05-29T15:24:35.135600Z

that's really weird - one way that would happen is if something called Eval! on the entire buffer on save

2020-05-29T15:24:47.135800Z

perhaps getting it mixed up with Eval