vim

2024-11-12T16:41:03.014179Z

For those of you that work on projects that are a mix of clojure and java, do you have any basic guidance on an (n)vim setup that's passable?

emilaasa 2024-11-13T12:31:22.107119Z

IntelliJ + Cursive + IdeaVIM is what I settled for.

2024-11-13T19:56:40.590679Z

Sounds like a sure bet 😄 thanks!

emilaasa 2024-11-13T20:02:42.058369Z

Theoretically using some java-lsp would work as well with some fiddling, but I just gave up the first time my java lsp server got an OutOfMemoryError

👀 1
emilaasa 2024-11-13T20:03:56.961559Z

One of the main reasons I use vim is because of ergonomics, and you can access most of the intelliJ features now with a custom ideamvimrc

emilaasa 2024-11-13T20:06:39.650939Z

They have this feature: https://www.jetbrains.com/help/idea/using-product-as-the-vim-editor.html#ide_actions So you can get the action ID for most of the things possible in intellij now, and then map it to something convenient in your ideavimrc file.

emilaasa 2024-11-13T20:07:24.820909Z

And then :actionlist dumps something like https://gist.github.com/zchee/9c78f91cc5ad771c1f5d

2024-11-13T20:08:22.821889Z

Whoa, this is great stuff, thanks! Adding this to my notes in the eventuality I go that route

emilaasa 2024-11-13T20:08:38.303069Z

Here's an example with some bindings https://gist.github.com/AlexPl292/50a3ff4cef1badcbb23436b22cbd3cf4

emilaasa 2024-11-13T20:09:31.181159Z

There's also which-key now, that kinda works like a stripped down version of the plugin. I ported most my keybindings from neovim + conjure to something similar in IntelliJ