How to use to get C style indentation in NeoVim?

I was wondering if anyone had a good setup for getting automatic indentation setup for Typst in Neovim. Something like

Before        Input         After
------------------------------------
{|}           <CR>          {
                                |
                            }
------------------------------------