I have a rather basic NeoVim setup with Coc for working with Python files. My Coc config looks like this:
{
"python.setLinter": ["mypy"],
"python.linting.enabled": false,
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.analysis.openFilesOnly": false,
"python.jediEnabled": true,
"coc.preferences.formatOnSaveFiletypes": [
"python",
"json",
"html"
]
}
If I edit a file called some_name.py
sometimes a file called some_name.py.[some-git-hash].py
appears beside the original file. The two files are identical. I have no idea why this happens, which process/plugin/... is doing that, why it happens only sometimes and - most important: How I "enabled" this.
What's the reason for this behavior and how can I disable it again?