fix(format): +format-with-eglot-fn: eglot detection
This commit is contained in:
parent
5f858bb142
commit
5cc4056abf
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ the requested feature."
|
||||||
Does nothing if `+format-with-lsp' is nil or the active server doesn't support
|
Does nothing if `+format-with-lsp' is nil or the active server doesn't support
|
||||||
the requested feature."
|
the requested feature."
|
||||||
(and +format-with-lsp
|
(and +format-with-lsp
|
||||||
(bound-and-true-p eglot-managed-mode)
|
(bound-and-true-p eglot--managed-mode)
|
||||||
(pcase op
|
(pcase op
|
||||||
('buffer (if (eglot--server-capable :documentFormattingProvider)
|
('buffer (if (eglot--server-capable :documentFormattingProvider)
|
||||||
(always (eglot-format-buffer))))
|
(always (eglot-format-buffer))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue