vim

Paul 2022-10-20T12:54:04.246629Z

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.

athomasoriginal 2022-10-20T12:58:50.347089Z

I use parinfer for structural editing (parinfer-rust) and for formatting, zprint. But I do formatting outside vim currently

👀 1
1
walterl 2022-10-20T13:10:00.491919Z

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.

1
dharrigan 2022-10-20T13:14:48.790539Z

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

2
2022-10-20T13:38:42.401599Z

There is also paredit to round out the parinfer and vim-sexp options

2022-10-21T05:28:18.355719Z

vim-iced (which includes formatting) + parinfer-rust very very nice experience

✅ 2
practicalli-johnny 2022-10-22T09:27:18.237119Z

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)

Paul 2022-10-21T13:10:07.263529Z

I'm currently using conjure

1