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

Words beginning with "in" triggering indentation accidentally #74

Open
andys8 opened this issue Oct 13, 2020 · 4 comments
Open

Words beginning with "in" triggering indentation accidentally #74

andys8 opened this issue Oct 13, 2020 · 4 comments

Comments

@andys8
Copy link
Contributor

andys8 commented Oct 13, 2020

It's somehow hard to come up with a good example, but just playing around in a do block, where let is also used without in, it feels like in triggers indentation accidentally. This is especially the case for words beginning with "in" e.g. intercalate.

It could be an improvement to use in<space> as trigger for indentation and not in.

simplescreenrecorder-2020-10-13_23 43 57

@andys8
Copy link
Contributor Author

andys8 commented Jan 27, 2021

I see this behavior even with

let g:purescript_disable_indent = 1

or

let g:purescript_indent_in = 0

Is this possible?

Update Okay, It looks like _disable_indent is not released until today.
https://github.com/purescript-contrib/purescript-vim/blob/fada016149e37c0d1e0e7c766104867384263b12/CHANGELOG.md

And I'm using https://github.com/sheerun/vim-polyglot

@thomashoneyman
Copy link
Contributor

@Vladciobanu Could we release a new version of the library? Looks like there are some nice improvements included in the latest. I can take a look at releasing this if you don't have time.

andys8 added a commit to andys8/purescript-vim that referenced this issue Feb 10, 2021
andys8 added a commit to andys8/purescript-vim that referenced this issue Feb 10, 2021
@i-am-the-slime
Copy link

@andys8 Can you help maintain this so we don't all need to use your fork?

@andys8
Copy link
Contributor Author

andys8 commented Dec 7, 2022

Hey, it's two years later and I'm currently trying to figure out what I did and why :D

The only difference of my fork is: main...andys8:purescript-vim:main

But turns out, I'm not using my fork myself, but instead disabled indentation completely.

andys8/dotfiles@d3de003

Since you seem to be using the fork: do you think it makes sense to open a pull request for the in commit today?

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

No branches or pull requests

3 participants