If ktlint CLI works as expected then you know that...
# ktlint
p
If ktlint CLI works as expected then you know that the editorconfig is set up correctly. In this way we can check whether the problem is with the plugin or with configuration.