Hi,
Recently I started learning Rust and before that I was coding with Python and Nodejs which was absolutely fantastic on emacs. But on Rust I'm having a wierd scrolling lag/delay/stuttering issue even with small files. Everything is working like auto completion, lsp and such but couldn't find why it's lagging on rust files
here is my config on rust+lsp:
(after! rustic
(setq rustic-lsp-server 'rust-analyzer)
)
(after! lsp-mode
(setq lsp-enable-symbol-highlighting nil)
(setq lsp-diagnostics-provider :none)
(lsp-diagnostics--enable)
(setq lsp-signature-auto-activate nil)
(setq lsp-signature-render-documentation nil)
(setq lsp-headerline-breadcrumb-enable t)
(setq lsp-completion-show-detail nil)
(setq lsp-log-io nil)
(setq lsp-completion-provider :capf)
(setq lsp-modeline-diagnostics-scope :file)
(setq lsp-enable-file-watchers nil)
(setq lsp-idle-delay 0.500)
(setq company-minimum-prefix-length 1
company-idle-delay 0.5)
)
and lsp doctor output:
Checking for Native JSON support: OK
Check emacs supports `read-process-output-max': OK
Check `read-process-output-max' default has been changed from 4k: OK
Byte compiled against Native JSON (recompile lsp-mode if failing when Native JSON available): OK
`gc-cons-threshold' increased?: OK
Using `plist' for deserialized objects? (refer to https://emacs-lsp.github.io/lsp-mode/page/performance/#use-plists-for-deserialization): OPTIONAL
Using emacs 28+ with native compilation?: OK