vim

For discussion on all things (neo)vim.
Chase 2020-07-04T00:47:31.345500Z

I think that is exactly what I was searching for, thank you. Not sure which lazy side will win out now that I try it, not wanting to learn a new plugin/tool for the limited times I do it or the lazy side that was looking for the shortcut in the first place. haha

Chase 2020-07-04T16:59:57.347700Z

I know fireplace is pretty minimal (why I love it) but is there a way to see some previous evaluations? Sometimes I miss having a log of things when trying to explore data.

dominicm 2020-07-05T08:32:15.369200Z

:Last

Chase 2020-07-04T17:02:04.349800Z

Side questions: I'm trying to cut out some chaff from my init.vim. Do I need the vim-classpath and vim-salve plugins when using vim fireplace? I always use a nrepl so I think I can cut those out. I use clojure.vim/async-clj-omni for auto completion with fireplace. Any other tools you folks use often that I might be missing out on?

2020-07-04T17:06:11.350300Z

I think the use case for vim-classpath is the ability to visit source for out-of-project definitions

2020-07-04T17:06:45.350900Z

it takes about 1000 times longer to load than the average plugin

Chase 2020-07-04T17:07:10.351300Z

That's why I'm hoping to eliminate it!

2020-07-04T17:07:56.352200Z

if you don't need go-to-source for jars in m2 cache, I'd skip it (or at least install it as an on-demand extension rather than autoload)

Chase 2020-07-04T17:09:03.353800Z

Fireplace, itself, is doing a weird thing too when I do my first evaluation. The cursor bounces from the expression down to the command menu in the bottom of the buffer a few times until it evaluates. Takes a few seconds but then after that it's all normal.

2020-07-04T17:09:13.354100Z

regarding seeing execution history, that's why I use neoterm for evaluation - I'd rather just use a repl in a terminal and have a record of everything executed

2020-07-04T17:09:28.354600Z

I use that instead of fireplace 95% of the time

Chase 2020-07-04T17:09:54.355400Z

Oh really? So you aren't evaluating and coding in your file buffer but straight in the repl?

2020-07-04T17:09:55.355500Z

I have fireplace as an optional package and usually don't bother loading it

2020-07-04T17:10:22.356200Z

neoterm defines a command that sends a text object or visual selection to the terminal

2020-07-04T17:10:25.356400Z

that's all I need

2020-07-04T17:10:56.357Z

the one thing that is harder than it should be - it doesn't have any way to automatically ensure the repl is in the current namespace

2020-07-04T17:11:22.357600Z

I need to do that by hand, but if my namespaces are well designed I'm only editing one at a time anyway

2020-07-04T17:11:47.358Z

I also use (require 'some.ns :reload) instead of sending whole files

2020-07-04T17:15:34.359300Z

@chase-lambert I know my choices in tooling are idiosyncratic - I know clojure better than I know any editor tooling and I prefer it that way (saves me a lot of pain when the abstractions leak / collapse) so I like the tooling that is closest to just using clojure directly

Chase 2020-07-04T18:07:00.359800Z

It's an interesting approach for sure. I've bookmarked neoterm and will check it out. Going to stick with fireplace for now

2020-07-04T18:57:30.360800Z

it's straightforward to compromise - use an nrepl client inside neoterm and send commands there if you want a buffer to hold the output, use fireplace connected to the same server for the normal commands

2020-07-04T18:58:12.361600Z

also I believe fireplace does have commands to use / reuse the result of previous execution, but I prefer to use my existing repl knowledge rather than figuring out that model

Chase 2020-07-04T19:35:24.361900Z

Sounds like the right approach. I appreciate it

dave 2020-07-04T19:55:30.362700Z

@chase-lambert it's also worth looking into https://github.com/Olical/conjure , if you want repl integration and a log buffer 🙂

Chase 2020-07-04T21:14:39.365300Z

Edit: was able to configure the Conjure hud to my liking. And I like the easy access to the log too. This could work great!

💯 1