For editing Go, I want to run goimports on save, which I have to setup null-ls to do, as gopls (the Go language server) bizarrely doesn’t do this. Hence I have this annoying dialog on save, triggered by autocmd! BufWrite <buffer> lua vim.lsp.buf.formatting()
.
Ideally I could choose null-ls, and it would remember my selection for at least that session. Else I guess I need to add some exception in my lua script?
Thank you in advance!