I added prettier-plugin-sql to my Prettier extension for Nova. I also use Prettiers formatWithCursor to retrieve the correct cursor Position after formatting.
prettier-plugin-sql seems to always return 0 as position, so the cursor always jumps to the beginning of the document.