Closed lightbluepoppy closed 4 months ago
you may need to config goimport='golines'
Now I use gopls, golines and golangci_lint separetely configured on Lazy and Mason.
I was using command = 'GoFmt'
and not the callback
block and also didn't have the golines
configuration. I added both (and removed command = 'GoFmt'
) and now my Golang code gets auto-formatted on save! Thanks to both of you!
Just to help future readers: it's goimports='golines'
now (plural goimports
and NOT goimport
).
(Also, now as in: 2024-APR-02.)
Currently, these lines of code is not enough to run GoFmt on save which runs
golines
which formats long lines of code. When I run:GoFmt
, golines runs and lines are being formatted.How is it possible to run golines properly on save?