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

Add deferUpdates mode #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add deferUpdates mode #3

wants to merge 2 commits into from

Conversation

Dummi26
Copy link

@Dummi26 Dummi26 commented Nov 28, 2023

This is a mode where the preview isn't updated once per change, but rather at most once per , if the document has changed.
This means that typing 20 characters only causes a few updates instead of one for each character.
Saves battery and reduces lag with very big .md files using a ton of TeX.

Disabled by default, but I had to move the Markdown Server into an Arc<Mutex<_>>.
Can be enabled using LSP config.

I needed this to prevent my battery from emptying way too fast,
but this also makes working with large documents more enjoyable in general.

Set to only a few milliseconds of delay for a nice and smooth experience, or a longer time for better battery life.

LSP config options:

  • deferUpdates.ms_before
  • deferUpdates.ms_between

LSP config options:

- deferUpdates.ms_before
- deferUpdates.ms_between
@Dummi26
Copy link
Author

Dummi26 commented Nov 28, 2023

i typed <duration> and it ate it. once per <duration>. sorry

...to the currently open document's parent directory
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

Successfully merging this pull request may close these issues.

1 participant