"set-language" for all files with extension ".whatever" or name matching "whatever" #4485
-
Hi! Maybe there already is an easy way to do this and I've just missed it. I'd like to specify in (preferably) my Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can create a custom # ~/.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"] |
Beta Was this translation helpful? Give feedback.
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