vim-sleuth
vim-sleuth copied to clipboard
yaml indentless arrays detection (for Kubernetes)
Sleuth often gets "indentless arrays" formatting of yaml wrong. This is a pretty standard formatting option with Kubernetes manifests. This is a pretty common example of yaml syntax that Sleuth detects as 4 but should be 2:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- test.yml
- test-2.yml
- pairs:
my-key: value
another-key: test
includeTemplates: true
Personally I think it's pretty stupid formatting but I didn't choose it 🤷♂️