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

Folds are broken after saving a JavaScript file #298

Open
pipoprods opened this issue May 19, 2021 · 0 comments
Open

Folds are broken after saving a JavaScript file #298

pipoprods opened this issue May 19, 2021 · 0 comments

Comments

@pipoprods
Copy link

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

A bug

What is the current/expected behavior?

Folds should remain well placed

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

1.0.0-beta, commit 37600923a25dded35bbf74c3f682d9807ef0b0ce

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

2.3.0

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

prettier (actually ~/.nvm/versions/node/v16.1.0/bin/prettier)

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

Don't know

When saving a file whose formatting is already correct, folds are moved one line below.

Before:
2021-05-19_15-47

After:
2021-05-19_15-48

If the file is not properly formatted, then it gets auto-formatted and folds are keps at their right place.

JS folding is configured this way:

let javaScript_fold=1
set foldmethod=syntax
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