Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.507
• https://github.com/BetterThanTomorrow/calva/issues/2797
• Bump default cider-nrepl Jack-in dependency to 0.55.4
Thanks @sashton for improving Calva! 🙏 ❤️ calva
Hi everyone. I'm using VIM extension with VSCode and when I try to evaluate the following form, I'm getting only the Hello World printed, but I wanted to evaluate the defn instead. I'm not sure how could I make this work in normal mode.
This is probably something other people have experienced I guess
Thank you in advance
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!"))Use the command Calva: Evaluate top level form alt+enter is the default binding.
Tysm 🙂 It has worked
Sometimes you will want to evaluate current form when it is at the end of a line. I don’t know how people do that in normal mode, but maybe some macro can be constructed that enters append mode, evaluates, and then goes back to normal mode.
Good to know. I was thinking about that and I saw in VSCode official Vim extension that it doesn't support macros... but I can figure it out eventually ahah If I find a way I'll share here 🙂
@pez here's the solution that has worked for me:
{
"before": ["<leader>", "e", "e"],
"commands": ["cursorRight", "calva.evaluateSelection"]
}
I added this to my vim.normalModeKeyBindingsNonRecursive config.Sweet! Please add to the Calva VIM page.