This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-01
Channels
- # announcements (3)
- # babashka (20)
- # beginners (77)
- # calva (27)
- # cider (5)
- # clara (3)
- # clj-kondo (9)
- # cljs-dev (4)
- # cljsrn (5)
- # clojure (26)
- # clojure-europe (32)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (4)
- # core-async (49)
- # cursive (15)
- # data-science (1)
- # datahike (4)
- # datomic (3)
- # docker (1)
- # events (1)
- # helix (5)
- # holy-lambda (3)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (2)
- # lsp (15)
- # malli (42)
- # off-topic (18)
- # pathom (18)
- # pedestal (12)
- # polylith (7)
- # rdf (1)
- # re-frame (22)
- # reitit (2)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (33)
- # shadow-cljs (85)
- # spacemacs (3)
- # vim (12)
- # xtdb (29)
What plugins do you guys recommend for clojure code editing and folding?
Nice trick!
Conjure + Parinfer works for me. I don't really use folding though, so I don't have a plugin for that.
Is there a paredit plugin for vim?
I don't use it, but I think there's something called "vim sexprs for regular people" or something like that, by his holyness tpope
Yes. This plugin builds on vim-sexp. And I am using it happily
I used parinfer before, then calva which has paredit, and now coming back I don't know how I made parinfer ever work before… Perhaps just timing, since I was working with large maps at that moment, and I just lost context of what level of indentation is right when the whole map didn't fit on the screen. So editing forms with parinfer was very painful counting of parentheses
I am using guns/im-sexp
and vim.o.foldmethod = "expr"
But I am missing a few things: 1. Strict parens check 2. Ability to fold nested forms inside a function body
I use the very old https://github.com/gberenfield/cljfold.vim, with https://github.com/justone/dotfiles-personal/blob/personal/.vimrc#L514, works very well. No folding within functions, found that to be overbearing in Go and so never looked for that in Clojure.