-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use intermediate / temporary file #258
Comments
e.g. how null-ls creates a temporary buffer: |
yes please 🙏 There are a bunch of formatters/linters with auto-fix which do not work with stdin. Of the top of my head:
|
There is some confusion here. I think what you are referring to is to somehow control I think what is needed is something similar to |
However I don't see the LSP server like efm provide a way to channel these changes from a temp file to stdout. I think it's the LSP client's responsibility to make sure the changes are shown if done externally just like it was done from stdout. For vim/neovim we have |
Some linter/formatter command looks current directory, file name, file extension, or configuration files. So temporary file might not fix something. |
for markdownlint-cli it can only fix files in place (no stdin)
so needs to copy current file to a temp file, apply fix, and then copy contents back
The text was updated successfully, but these errors were encountered: