This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-20
Channels
- # announcements (10)
- # aws (4)
- # babashka (71)
- # beginners (30)
- # calva (61)
- # cherry (1)
- # cider (16)
- # clj-kondo (3)
- # clj-on-windows (4)
- # cljsrn (1)
- # clojure (28)
- # clojure-austin (2)
- # clojure-bay-area (1)
- # clojure-europe (45)
- # clojure-hungary (1)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (14)
- # clojure-uk (11)
- # clojurescript (39)
- # core-async (3)
- # core-typed (11)
- # datomic (68)
- # fulcro (7)
- # keechma (1)
- # lsp (29)
- # malli (5)
- # off-topic (57)
- # other-languages (13)
- # pathom (4)
- # rdf (7)
- # reagent (7)
- # reitit (6)
- # releases (1)
- # schema (8)
- # shadow-cljs (86)
- # sql (22)
- # squint (1)
- # vim (8)
- # xtdb (12)
Looking for a couple modules for neovim and clojure (yes I've tried googling!) -- automatic code formatting such as prettier (not sure if this is common in clojure / lisp) and structural editing. Any help is greatly appreciated.
I use parinfer for structural editing (parinfer-rust) and for formatting, zprint. But I do formatting outside vim currently

guns/vim-sexp
+`tpope/vim-sexp-mappings-for-regular-people` works well structural editing for me. The former also includes formatting, but so does clojure-lsp
(I use Neovim's native LSP support to hook that up). Dotfiles https://github.com/walterl/dotfiles/tree/master/_config/nvim if you're interested.

I've shared my vimconfig here: https://github.com/dharrigan/vimconfig. Perhaps you may find some things useful 🙂

vim-iced (which includes formatting) + parinfer-rust very very nice experience
Automatic code formating: https://github.com/neovim/nvim-lspconfig with https://clojure-lsp.io/ server and Neovim built-in https://neovim.io/doc/user/lsp.html Manual code formatting: https://github.com/greglook/cljstyle ran on the command line, using this https://github.com/practicalli/dotfiles/blob/main/.cljstyle to match cljfmt formatting used in Clojure LSP I use these https://github.com/practicalli/neovim-config-redux#plugins (using a Fennel config)