Skip to content

Helm file-types conflict with Gitlab CI component YAML #14498

@nikaro

Description

@nikaro

Summary

[[language]]
...
file-types = [ { glob = "templates/*.yaml" }, { glob = "templates/*.yml" }, { glob = "templates/_*.tpl"}, { glob = "templates/NOTES.txt" } ]

cf. https://github.com/helix-editor/helix/blob/master/languages.toml#L4045

A GitLab component directory is structured like this:

├── templates/
│   ├── my-component.yml
│   └── my-other-component/
│       ├── template.yml
│       ├── Dockerfile
│       └── test.sh
├── LICENSE.md
├── README.md
└── .gitlab-ci.yml

cf. https://docs.gitlab.com/ci/components/#directory-structure

So Gitlab CI components YAML files are detected as Helm files, thus not highlighted/linted/etc. properly.

Reproduction Steps

I tried this:

  1. hx

I expected this to happen:

Instead, this happened:

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

macOS

Terminal Emulator

ghostty

Installation Method

brew

Helix Version

helix 25.07.1 (a05c151)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions