-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Summary
After coc-prettier is triggered, the folding in the file will change
Steps to Reproduce
- Start with the following file:
export const f = () => {
const x = () => {
console.log('hello');
};
return 'a';
};
:set foldmethod=indent
:set foldlevel=99
2GJJ
- Trigger coc-prettier
- Notice that it looks like the original. This is the expected behavior. ✅
zM2GzO
2GJJ
- Trigger coc-prettier
- Notice that the function is now folded. This is not what I want ❌
Ideal Solution
When formatting with Prettier, coc-prettier should not change any of the folding. It should not open or close any folds.
Metadata
Metadata
Assignees
Labels
No labels