Updated to plasma 6 (manjaro). Earlier, saving files in kate that were in root would prompt for password. Now simply shows a error
The document could not be saved, as it was not possible to write to /usr/share/kwin/effects/squash/contents/code/main.js.Check that you have write access to this file or that enough disk space is available.The original file may be lost or damaged. Don’t quit the application until the file is successfully written.