Formatting on save · jose-elias-alvarez/null-ls.nvim Wiki

!https://github.com/jose-elias-alvarez/null-ls.nvim/wiki/Formatting-on-save#code

Copy this post

neovim stopped formatting on save for me awhile ago and I have just been dealing with it. looks like there may have been an api change, idk.

I had to make this update.4

- vim.lsp.buf.format()
+ vim.lsp.buf.format({async=false})