Skip to content

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