Skip to content

"set-language" for all files with extension ".whatever" or name matching "whatever" #4485

Answered by the-mikedavis
helmesjo asked this question in Q&A
Discussion options

You must be logged in to vote

You can create a custom languages.toml config that overrides the file-types for bash to include buildfile https://docs.helix-editor.com/master/languages.html

# ~/.config/helix/languages.toml
[[language]]
name = "bash"
file-types = ["sh", "bash", "zsh", ".bash_login", ".bash_logout", ".bash_profile", ".bashrc", ".profile", ".zshenv", ".zlogin", ".zlogout", ".zprofile", ".zshrc", "APKBUILD", "PKGBUILD", "eclass", "ebuild", "bazelrc", "buildfile"]

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@helmesjo
Comment options

@the-mikedavis
Comment options

@helmesjo
Comment options

@edrozenberg
Comment options

Answer selected by helmesjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4482 on October 27, 2022 13:32.