Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable auto detection of indentation style #10571

Conversation

bpandreotti
Copy link

Currently, when loading a file, the indentation style is detected using a heuristic that can sometimes make mistakes (see #9556, #9822). This PR adds an auto-detect-indent option, which defaults to true, that allows users to change this behaviour. When auto-detect-indent is set to false, instead of trying to detect the indent syle, Helix will just use the ident style defined in the language configuration.

@pascalkuthe
Copy link
Member

I don't see us adding this to core. We dont like adding condig options. We should rather improve the indent detection and allow modlines to manually overwrite in the rare edgecases. Thank you for contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants