How to add indent style for non-supported language #8799
-
I want to configure helix to have a specific indent style for .tcl and .tk files. Currently, each time I open a .tcl file, I have to manually set this up using :indent-style 3. Since tcl and tk are not supported in the official languages listed in |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Nov 13, 2023
Replies: 1 comment 1 reply
-
Creating an entry in [[language]]
name = "tcl"
scope = "source.tcl"
file-types = ["tcl"]
roots = []
indent = { unit = " ", tab-width = 3 } |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Landflier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating an entry in
~/.config/helix/languages.toml
or.helix/languages.toml
is the proper way to do this, you'll just need to fill in the required keys: