Formatting very extreme!
Opened this issue · 6 comments
Using null-ls I could configure the width like this: args = { "--stdin-filepath", "$FILENAME", "--print-width", "80", "--tab-width", "2" },
But with this plugin I get extreme spacing, mostly 3 tabs per indentation.
Not sure what formatter you are talking about, but in general you can construct the command however you want with something like this:
formatters.shell({ cmd = { "myformatter", "--stdin-filepath", "%", "--print-width", "80", "--tab-width", "2" } })
There are some examples in readme.
prettierd
Does my comment above solve your problem then? formatters.prettierd
is internally defined like this formatters.shell({ cmd = { "prettierd", "%" } })
. So you can just copy this snippet and add as many arguments as you like.
I will try it in a second
Thanks @faergeek
Hi @FormalSnake, did you happen to try @faergeek's suggestion?
I did, but it recently broke.