mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-15 13:23:42 -05:00
refactor(format): use eglot-server-capable
eglot--server-capable was deprecated.
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
"TODO"
|
||||
(if (bound-and-true-p eglot--managed-mode)
|
||||
(when (and +format-with-lsp (null +format-with))
|
||||
(when (or (eglot--server-capable :documentFormattingProvider)
|
||||
(eglot--server-capable :documentRangeFormattingProvider))
|
||||
(when (or (eglot-server-capable :documentFormattingProvider)
|
||||
(eglot-server-capable :documentRangeFormattingProvider))
|
||||
(setq-local +format-with--last +format-with
|
||||
+format-with 'eglot)))
|
||||
(when +format-with--last
|
||||
|
Reference in New Issue
Block a user