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

Indent guides don't follow indent-style #6134

Closed
NomisIV opened this issue Feb 28, 2023 · 0 comments · Fixed by #6136
Closed

Indent guides don't follow indent-style #6134

NomisIV opened this issue Feb 28, 2023 · 0 comments · Fixed by #6136
Labels
C-bug Category: This is a bug

Comments

@NomisIV
Copy link
Contributor

NomisIV commented Feb 28, 2023

Summary

The indentation style of a file can be automatically detected as it should, but the indent lines only adhere to whatever is in the languages.toml-file. I think it would make more sense if the indentation lines used whatever value is detected instead of only following the pre-set value.

Example
image

Reproduction Steps

I tried this:

  1. open a file in helix that uses 4 spaces of indentation, but should use 2 spaces according to languages.toml

I expected this to happen:

  1. The indentation lines should follow the automatically detected indentation style

Instead, this happened:

  1. The indentation lines use the default indentation style for the current language, which might not be the same value

Helix log

No response

Platform

Linux

Terminal Emulator

Alacritty

Helix Version

helix 22.12

@NomisIV NomisIV added the C-bug Category: This is a bug label Feb 28, 2023
archseer pushed a commit that referenced this issue Mar 1, 2023
estin pushed a commit to estin/helix that referenced this issue Mar 4, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this issue Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant