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

dot chained indentation problem #1206

Open
Groude opened this issue May 8, 2020 · 1 comment
Open

dot chained indentation problem #1206

Groude opened this issue May 8, 2020 · 1 comment

Comments

@Groude
Copy link

Groude commented May 8, 2020

Hello Everyone!
I saw a few topics about my problem, but didn't found a solution for this:

I will try to show with code example and a screenshot what I mean.

So here is my chained function:

document
  .querySelector('.btn-roll')
  .addEventListener('click', play)

if I will add on a new line more chained function it will look like this in Vim(insert mode)

document
  .querySelector('.btn-roll')
  .addEventListener('click', play)
.anotherFunction();

it does not keep previous indentation.

image

is there a way to fix it?

@Groude
Copy link
Author

Groude commented May 9, 2020

I found kind of a solution that provides plugin:

May-09-2020 00-25-31

But does anyone know any other solution?

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

No branches or pull requests

1 participant