If anyone else comes here and is using nvim-lspconfig then:
in lua/plugins/ add a file with this spec:
return {
"neovim/nvim-lspconfig",
opts = function(_, opts)
opts.diagnostics.virtual_text = false
return opts
end,
}
That did it for me.