Ability to specify file type prefixes for language detection #7422
Labels
A-language-support
Area: Support for programming/text languages
C-enhancement
Category: Improvements
A pattern I've seen or implemented in many repos is to have
Containerfile
alongside aContainerfile.base
- the former bundles up the app code (which changes frequently), the latter installs "system level dependencies" which generally changes far less frequently (this would be where, say,libfoo-devel
gets installed forfoo-gem
to build against).My Neovim config appears to auto-detect
Containerfile.base
as a Dockerfile (not sure if that's by way of file name or by way of theFROM blah
line at the top), but I can't so far figure out how to emulate this in Helix, and further, Vim modelines don't flip Helix into Dockerfile mode, so I can't even hint at "hey, here's what you should use to highlight this!".I'd propose something like the following, though it's probably imperfect and open to all sorts of discussion:
or maybe
Containerfile.*
?The text was updated successfully, but these errors were encountered: