Skip to content
Discussion options

You must be logged in to vote

Helix will detect the indentation used in the file, or otherwise defaults to the language indentation configured in languages.toml, with a fallback to tabs if it isn't specified. Line ending is likewise auto-detected, and will remain unchanged if no line endings were detected.

Set Config with ~/.config/helix/languages.toml , like config of javascript language

[[language]]
name = "javascript"
indent = { tab-width = 4, unit = "    " }

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by soupfoo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@jakobjpeters
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants