Skip to content

Add options to configure indentation #37

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

Closed
wants to merge 3 commits into from

Conversation

mateoxh
Copy link
Contributor

@mateoxh mateoxh commented Mar 4, 2025

Do you think it's more appropriate to put this in the README or create a doc folder?

mateoxh added 3 commits March 4, 2025 15:57
These options override the default behavior of auto indenting to the first
non-space character:
`g:haskell_indent_do`
do
>>foo

`g:haskell_indent_if`
if foo
>>then bar
>>else baz

`g:haskell_indent_case`
case foo of
>>bar -> baz
`g:haskell_indent_in`
let x = 1
>>in x
@mateoxh
Copy link
Contributor Author

mateoxh commented Mar 11, 2025

I updated the README. Is it ready to be merged? I can't add tests for this but from my usage the options work as expected.
Thank you.

@itchyny
Copy link
Owner

itchyny commented Mar 16, 2025

Please add tests like how g:haskell_indent_disable_case does.

@itchyny
Copy link
Owner

itchyny commented Mar 16, 2025

However, my honest impression to this PR is that I don't want to add options in this plugin, since I think it should be opinionated. Having too many options is hard for me to handle the maintenance and tend to give up.

@mateoxh mateoxh closed this Mar 17, 2025
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