mdpls
mdpls copied to clipboard
Add deferUpdates mode
This is a mode where the preview isn't updated once per change, but rather at most once per
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
i typed <duration> and it ate it. once per <duration>. sorry