This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-23
Channels
- # announcements (1)
- # babashka (13)
- # cherry (12)
- # cider (6)
- # clj-kondo (3)
- # cljs-dev (28)
- # clojure (77)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-uk (5)
- # clojurescript (31)
- # conjure (7)
- # cursive (12)
- # data-science (9)
- # datalevin (5)
- # datomic (8)
- # hyperfiddle (21)
- # jobs (7)
- # kaocha (19)
- # malli (26)
- # matrix (3)
- # releases (1)
- # shadow-cljs (42)
- # squint (95)
- # testing (2)
- # vim (14)
- # wasm (1)
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}
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 😉 )
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
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.
Just realised I also have that alignment without saving the file. Turns out lazyvim is using conform.nvim for formatting.
Which treesitter-friendly colorscheme are you using? Not all of them play nicely with Clojure I find.
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/
that one is also nice
This one is quite soothing for Clojure code: https://github.com/neanias/everforest-nvim
I've also been using everforest with AstroNvim and find it very easy on the eyes and well supported
My preference is https://github.com/projekt0n/github-nvim-theme/#github-light. I haven't found any problems with the way it presents Clojure.