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

markdown file: an unordered list and 3 spaces between dash and item #283

Closed
adampaulukanis opened this issue Feb 14, 2021 · 3 comments
Closed

Comments

@adampaulukanis
Copy link

Do you want to request a feature or report a bug?

It is probably a bug

What is the current/expected behavior?

When I have a markdown file like this for instance:
`# TODO

  • one
  • two
  • three`

Notice there is only one space between '-' and first character.

And I like it that way.

After issuing :Prettier I get something like that:

`# TODO

  • ___one
  • ___two
  • ___three`

There are 3 spaces between '-' and first character.

Is it intentional? Does it matter at all?

I guess I can live with that but I somehow like it when there is only one space between them.

What version of vim-prettier are you using - (output of :PrettierVersion) ?

1.0.0-beta

What version of prettier are you using - (output of :PrettierCliVersion) ?

2.2.1^@

What is your prettier executable path - (output of :PrettierCliPath) ?

prettier

Did this work in previous versions of vim-prettier and/or prettier ?

No idea, I have just started using vim-prettier.

Does it do that way in relation to this?

@adampaulukanis
Copy link
Author

Now I realized that it has something to do with tabs. Sorry for the noise.

@kasir-barati
Copy link

@adampaulukanis I am experiencing the same situation and dunno exactly what is wrong. I installed VSCode on my Manjaro, then installed Prettier. Created a README.md file and tried to add a list like this:

- Some list

But after I saved it, I had this:

-   Some list

It is really annoying 😞, if you solved it please share how you did it so I can get rid of it and change it back to the way it was.

@adampaulukanis
Copy link
Author

Hi @kasir-barati sadly, I do not remember much from it.

It may help you or not. I was using Vim, and there is an option called shiftwidth. It was set in my case to 4, after changing it to 2 I got what I wanted.

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

2 participants