| https://reddit.com/link/1ptrtld/video/zxe9aznaxx8g1/player A month ago I released my second ever Neovim plugin, calcium.nvim, which in short is: A powerful lua-lib-math in-buffer calculator with visual mode, functions and variable support. I didn't except such great feedback from the reddit community and to thank you all, I have improved it a lot since by checking off a few ideas from my "Roadmap" list. ✨ New features - New functions: everything from
lua-lib-math + avg, clamp, fact, fib, gcd, lcm, median, range, round, sign and trunc. - Solve expressions in the cmdline.
:Calcium round(2 * pi) will print the result 6. - Boolean results:
2 + 2 >= 4 returns true. - Smart-selection: previously, if your expression did not occupy the whole line, for example "I have 2 + 2 cats", you'd have to select
2 + 2 in visual mode, because in normal mode Calcium would error trying to solve everything in the line. Now you can simply have your cursor near any expression in-line, Calcium will parse the line and detect the expression for you. For example: "I have 2 + 2 ca[cursor]ts and 9 / 3 dogs", Calcium will detect both expressions, creating boundaries between them and anything non-maths related, and solve the closest one. 🐞 I also solved a few bugs, some through people who created Issues on GitHub. Please do not hesitate to do the same. ⚠️ For those unaware of calcium.nvim, this previous reddit post explains the basics. submitted by /u/4Necrom [link] [comments] |