tab-width ignored for C files #11646
Answered
by
the-mikedavis
tavianator
asked this question in
Troubleshooting
-
SummaryI want literal tab characters to be rendered with width 8. But it seems they always get width 2. Reproduction Stepstavianator@graphene $ cat ~/.config/helix/languages.toml
[[languages]]
name = "c"
scope = "source.c"
injection-regex = "c"
file-types = ["c"]
indent = { tab-width = 8, unit = "\t" }
tavianator@graphene $ cat foo.c
int main(void) {
return 0;
}
tavianator@graphene $ xxd foo.c
00000000: 696e 7420 6d61 696e 2876 6f69 6429 207b int main(void) {
00000010: 0a09 7265 7475 726e 2030 3b0a 7d0a ..return 0;.}.
tavianator@graphene $ helix foo.c Helix logNo response PlatformArch Linux Terminal Emulatorkonsole 24.08.0 Installation MethodArch Repos Helix Versionhelix 24.7 |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Sep 6, 2024
Replies: 1 comment 2 replies
-
There's a typo in |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tavianator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a typo in
~/.config/helix/languages.toml
: the header should be[[language]]
instead of[[languages]]