Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Delay when formatting files on save #485

Answered by vuki656
rushilmehra asked this question in Q&A
Discussion options

You must be logged in to vote

You have format on save which is causing the lag.

For me eslint_d takes a second or two most of the time to chew up the buffer. Plus I'm pretty sure you are running both eslint_d and prettier on save since they both format/lint js/ts/jsx/tsx.

I don't think you can make it instant and have format/lint on save.

The best bet would be to remove the auto command and call the formatting manually with a keymap.

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
16 replies
@jose-elias-alvarez
Comment options

@rushilmehra
Comment options

@vuki656
Comment options

@rushilmehra
Comment options

@vuki656
Comment options

Answer selected by jose-elias-alvarez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants