refactor(format): use eglot-server-capable
eglot--server-capable was deprecated.
This commit is contained in:
parent
deb59ca4ad
commit
5e78ed0911
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue