Fork me on GitHub
#vim
<
2024-01-23
>
Adam Helins01:01:13

Per chance, has anyone a good solution for vertical alignment, e.g. in maps? Using EasyAlign, it is indeed easy enough to align [1 with :bar but I struggle to align the inside the vertical vector:

{:a [1
     2
     3]
 :fooooooooo :bar}

Jacob O'Bryant03:01:52

when I looked into this recently my conclusion was there doesn't seem to be a good way to do this with vim plugins. You could possibly rig up something with https://github.com/kkinnear/zprint, or just run that before you commit (maybe with a git hook). (Or just manually align the map values, which is what I've been somewhat inconsistently doing at work 😉 )

Adam Helins10:01:46

I didn't have too much look with zprint so far but I don't know it too well :thinking_face: I guess I'll stick to EasyAlign for now

maksut23:01:40

I use lazyvim which autoformats on file save by default. I think it uses cljfmt for clojure. I initially thought it would bother me but got used to it quickly.

maksut09:01:52

Just realised I also have that alignment without saving the file. Turns out lazyvim is using conform.nvim for formatting.

Adam Helins15:01:27

Which treesitter-friendly colorscheme are you using? Not all of them play nicely with Clojure I find.

Noah Bogart15:01:23

i've been using dracula for nearly 10 years, haven't found anything that i like as much. this one is treesitter friendly and keeps up to date with neovim changes: https://github.com/Mofiqul/dracula.nvim/

👌 1
Noah Bogart16:01:21

that one is also nice

Adam Helins16:01:11

This one is quite soothing for Clojure code: https://github.com/neanias/everforest-nvim

practicalli-johnny17:01:51

I've also been using everforest with AstroNvim and find it very easy on the eyes and well supported

maksut23:01:10

Another everforest user here. It's nice. 🌲

sheluchin17:01:37

My preference is https://github.com/projekt0n/github-nvim-theme/#github-light. I haven't found any problems with the way it presents Clojure.

❤️ 1