liquidz / vim-iced

Clojure Interactive Development Environment for Vim8/Neovim
https://liquidz.github.io/vim-iced/
MIT License
518 stars 35 forks source link

Evaluation result/return not showing in rEPL #362

Closed guilhermedallanol closed 3 years ago

guilhermedallanol commented 3 years ago

Hey everyone, I'm new to this so bare with me, please. 😅

When I evaluate something in any . clj file inside a Lein project, this is what get in return:

image

I'm not sure if that's a problem in my end or what, but shouldn't I see the 42 in my repl as well?

This is a simple example, but the problem is bigger when I want to see the return, for example, of a d/transact like this:

image

I was expecting this return (in blue) to also be printed in my repl (or at least in the iced_stdout), but that's not the case.

Am I doing something wrong? Is this a config issue that I missed?

Thanks!

liquidz commented 3 years ago

@guilhermedallanol iced_stdout is a buffer to display stdout while evaluating, so evaluated value is not displayed by default.

You can use IcedPrintLast command to print the evaluated value to iced_stdout (default key mapping is <Leader>ep) https://liquidz.github.io/vim-iced/vim-iced.html#%3AIcedPrintLast

guilhermedallanol commented 3 years ago

@liquidz Ohh, gotcha!

<Leader>ep worked like a charm! Thanks!