-
-
Notifications
You must be signed in to change notification settings - Fork 79
Use SMIE for indentation #79
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
Conversation
Interesting! I've gotta check this out. If it passes all the tests we have so far and works reasonably well (like, changes it makes are reasonable changes, such as: The file was probably wrong) on bigger existing files are a good start. But yeah, it needs to be tested out for a bit :) |
Looks good mostly to me! I would like to add some more test cases, but otherwise I think it's good work! Thanks for working on this, I have been too busy to really look at nix-mode for the last few months, but I definitely think we can merge this. I do think I want to keep |
Thanks! This works really well. I've release 1.4.0 with these changes and making smie-indent-line the default. |
@j-piecuch Very good job on this! :) |
This pull request has been mentioned on Nix community. There might be relevant details there: |
This is my attempt at providing a sensible indentation function for nix mode.
It's a bit hacky, but it works (i.e. it barely changes anything when I format something like this file.
Let me know what you think!