don't add indent for array in yaml
winkee01 opened this issue · comments
do you support customization the autoformat for yaml file? I prefer no adding indent for array in yaml.
related threads:
redhat-developer/vscode-yaml#172
prettier/prettier#10927
Yeah, we do support customization. Read the readme on how to pass CLI arguments to the formatter.
Hi, did you read the related threads? it's not about tabstop or shiftwidth problem, it is syntax related. which means it needs to control how array objects display in yaml, but not other objects.
I looked at our list of supported default formatting tools, and it seems that YAML is not among them. So that means we use Vim's builtin indentation support as a fallback. If that doesn't work well enough for you, you can try to patch Vim's indent file for yaml or integrate an external yaml formatter into vim-autoformat.
Exactly