Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produces invalid YAML #3

Open
Sebelino opened this issue Oct 1, 2022 · 0 comments
Open

Produces invalid YAML #3

Sebelino opened this issue Oct 1, 2022 · 0 comments

Comments

@Sebelino
Copy link

Sebelino commented Oct 1, 2022

With let g:yaml_formatter_indent_collection=1, running :YAMLFormat on the following file:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.3.0
  hooks:
  - id: trailing-whitespace

produces:

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.3.0
  hooks:
    - id: trailing-whitespace

which cannot even be parsed. Expected:

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
      - id: trailing-whitespace
Sebelino added a commit to Sebelino/nixos-config that referenced this issue Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant