Autoformat using first option (disable formatting on tsserver)

Hi friends i recently updated to neovim 0.7 and latest verison of lspconfig

i use efm (eslint+prettier) and tsserver

When i format a file i want to use efm, however im always presented with both options. Is there a way i can get it to always format using efm rather than tsserver?


I had this in my config to disable formatting on tsserver but it does not seem to work anymore with the new versions

  on_attach = function(client)
    client.resolved_capabilities.document_formatting = false

Since this comes up often there is :