Disable yamlls on specific "compound" file type

Basically, right now yamlls is not having fun with helm templates, with its particular syntax and double curly braces “{{ … }}”.

For normal yaml files, the filetype is simply “yaml”.
For helm template files, the filetype is “yaml.gotexttmpl”.

I realize that in vim the dot will essentially make it so that it will use the yaml filetype first and then the gotexttmpl filetype.

Is there any way to configure the yamlls to specifically NOT run on yaml.gotexttmpl ? Or perhaps there is a better way to go about the use case of ignoring errors for Helm templates with filetype yaml.gotexttmpl that I am not thinking of.

2 Likes

I’m curious about this too but for Cloudformation templates, which we usually name foo.cfn.yml.