Skip to content

Bug: Files will be detected as ft helm when they are in templates directory. #30

@tzabbi

Description

@tzabbi

Issue

In my project we are using .gitlab-ci.yml files as templates, which are in a subdirectory called templates. Since I activated this plugin they will be handled helm files, which results that the wrong lsp will be attached. The detection is done by the line: https://github.com/towolf/vim-helm/blob/master/ftdetect/helm.vim#L5

Solution

We should add a check which will only detect files as ft helm in templates dir, when there is a chart.yaml in the parent directory.

I will provide a fix for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions