~technomancy/fennel#150: 
[fnlfmt] extreme indentation

The following sample has been formatted with fnlfmt. It is indented way too much.

;; insane indentation!
(vim.api.nvim_create_autocmd :User
                             {:pattern :PackerCompileDone
                              :once true
                              :callback #((. (require :mzte_nv) :compile
                                             :compilePath) (. (require :packer)
                                                                                                                                       :config
                                                                                                                                       :compile_path))})
Status
RESOLVED CLOSED
Submitter
~lordmzte
Assigned to
No-one
Submitted
1 year, 6 months ago
Updated
6 months ago
Labels
enhancement fnlfmt

~technomancy 1 year, 2 months ago

Yeah, honestly most of the issues remaining with fnlfmt stem from the fact that it doesn't look ahead in order to see when it needs to add a newline. This would be a fairly significant additional feature, but I think it's worth doing at some point.

~technomancy 6 months ago

Just realized I misread the example here and this is a lot simpler than I thought. Pushed a fix in e8c8502.

~technomancy REPORTED CLOSED 6 months ago

Register here or Log in to comment, or comment via email.