I think for code you might just have to get used to typing slower. There's not much you can't do with one hand. If your keyboard has QMK you can program some custom shortcuts or macros to help with difficult key combinations.
For real writing (emails, slack messages etc), I'd say dictate it and then just use your keyboard for edits.