refactor(format): use eglot-server-capable

eglot--server-capable was deprecated.
This commit is contained in:
Henrik Lissner 2024-07-07 14:28:59 -04:00
parent deb59ca4ad
commit 5e78ed0911
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -24,8 +24,8 @@
"TODO" "TODO"
(if (bound-and-true-p eglot--managed-mode) (if (bound-and-true-p eglot--managed-mode)
(when (and +format-with-lsp (null +format-with)) (when (and +format-with-lsp (null +format-with))
(when (or (eglot--server-capable :documentFormattingProvider) (when (or (eglot-server-capable :documentFormattingProvider)
(eglot--server-capable :documentRangeFormattingProvider)) (eglot-server-capable :documentRangeFormattingProvider))
(setq-local +format-with--last +format-with (setq-local +format-with--last +format-with
+format-with 'eglot))) +format-with 'eglot)))
(when +format-with--last (when +format-with--last