Closed jczhang02 closed 2 years ago
It does not change the file name. It creates new temporary files to do the formatting.
It does not change the file name. It creates new temporary files to do the formatting. how to disable it of tex filetype or repair it?
You can't disable it. This is how the plugin works. You can try to not create backup files for them.
The problem I need to solve now is how can I get the format to read the original filename in the format plugin configuration. For example, for the main.tex file, what is the best way to represent this original file name?
The problem I need to solve now is how can I get the format to read the original filename in the format plugin configuration.
Why do you want to do that? I think you are misunderstanding something, what are you trying to achieve?
pls try latexindent for a while, i just want to format tex file by latexindent. Since format.nvim will create tmp file when formating , latexindent will format the tmp file rather than origin file. But actually, latexindent will make a backup when it is working.
The plugin works by creating a temp file, formatting that, then writing the result back into the original file. To not block editing and to not save the actual file.
You cannot pass the actual file. This is by design. If you need this, you'll have to use a different plugin
i have understood what u said, thanks! The only solution is to make latexindent do not create temp file
I am using format.nvim and latexindent to beautify my tex code, but it is strange that there are many bak file created.
Latexindent log displayed that maybe format.nvim change filename when saving code like this :