In nuxt.config file, add the @primevue/nuxt-module to the modules section and define primevue object for the configuration of the module.