vim-sleuth icon indicating copy to clipboard operation
vim-sleuth copied to clipboard

yaml indentless arrays detection (for Kubernetes)

Open j-krl opened this issue 1 month ago • 0 comments

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 🤷‍♂️

j-krl avatar Dec 18 '25 17:12 j-krl