dprint-plugin-exec
dprint-plugin-exec copied to clipboard
Formatting plugin for dprint that formats code via other formatting CLI tools.
It seems `dprint lsp` doesn't format using commands provided in exec section. `dprint fmt` works for exec commands though. I use the following global configuration, which i reference when starting...
Some formatter tools like `black` from Python have no option for printing to the stdout. There should be an option so that those tools can directly write to the file...
I'm trying to format with [`xo`](https://github.com/xojs/xo) using this plugin, but it seems like `xo` is never being called. Minimal config: ```json { "excludes": ["**/node_modules"], "plugins": [ "https://plugins.dprint.dev/typescript-0.87.1.wasm", "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072" ], "exec":...
~~I broke the last release on mac. There should be some way to test this in integration.~~ No, I didn't break the build. I was just accidentally running an old...
Given the recent versions, I am forced to use `dprint-plugin-exec` for formatting the rust files. However, I have noticed ~3 times a slow down in my project. It seems that...
The command in the config here (https://github.com/dprint/dprint-plugin-exec/issues/23#issuecomment-1464831839): ```json "exec": { "associations": [ "**/*.{sh,bash}", "**/package.json" ], "prettier-package-json.associations": "**/package.json", "prettier-package-json": "node_modules/.bin/prettier-package-json" }, ``` ...has files `prettier-package-json`, `prettier-package-json.cmd` and `prettier-package-json.ps1`, but doesn't work...
This is too verbose: ```json "exec": { "associations": [ "**/*.{sh,bash}", "**/package.json" ], "prettier-package-json.associations": "**/package.json", "prettier-package-json": "node_modules/.bin/prettier-package-json --write", "prettier-package-json.stdin": false } ``` It should allow for something along these lines now...
Not a big deal, but I think we could replace handlebars with a few string replaces or a custom function that handles it. ``` $ cargo bloat --release --crates File...
As title.
That way when someone does `dprint config update` it will automatically add that setting. It's one of the methods on this handler: https://github.com/dprint/dprint-plugin-exec/blob/f0af32703966b0088c1fd1e4964d05f3b40ece81/src/handler.rs#L64