Add a keymap within the LSP client to format the text rather than automatically formatting it on save.