File extension overrides not working. #9593
-
SummaryFile overrides in languages.toml are not taking for file extensions for pre-associated types. Specifically I want C header files (.h) to have language C but helix is setting the language to CPP even with the following language config:
Reproduction StepsI tried this: Using this config
I expected this to happen: Instead, this happened: Helix log~/.cache/helix/helix.log
PlatformLinux Terminal EmulatorKitty Installation MethodBuild master from commit d570c29 Helix Version |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You also need to remove the Lines 438 to 445 in d570c29 For example: # ~/.config/helix/languages.toml
[[language]]
name = "cpp"
file-types = ["cc", "hh", "c++", "cpp", "hpp", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino", "C", "H", "cu", "cuh", "cppm", "h++", "ii", "inl", { suffix = ".hpp.in" }, { suffix = ".h.in" }] |
Beta Was this translation helpful? Give feedback.
You also need to remove the
h
file-type from C++'s configuration:helix/languages.toml
Lines 438 to 445 in d570c29
For example: