We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to set this up to autoformat my Caddyfile, but when I save I get the error "WARNING: The file has been changed since reading it!!!"
This is my config
require("conform").setup({ formatters_by_ft = { caddyfile = { "caddyfile" }, }, formatters = { caddyfile = { command = "caddy", args = { "fmt", "--overwrite" }, stdin = true, cwd = require("conform.util").root_file({ "Caddyfile" }), require_cwd = true, } } })
The text was updated successfully, but these errors were encountered:
fixed with changing args = { "fmt", "--overwrite" }, which does not print to stdout to args = { "fmt"}, prints to stdout
args = { "fmt", "--overwrite" },
args = { "fmt"},
Sorry, something went wrong.
The - argument can be used to tell caddy to read from stdin and avoid depending on cwd:
-
cwd
{ command = "caddy", args = { "fmt", "-" }, stdin = true, }
No branches or pull requests
I am trying to set this up to autoformat my Caddyfile, but when I save I get the error "WARNING: The file has been changed since reading it!!!"
This is my config
The text was updated successfully, but these errors were encountered: