diff --git a/modules/editor/format/autoload/lsp.el b/modules/editor/format/autoload/lsp.el index 3ccb6836f..a3cd82505 100644 --- a/modules/editor/format/autoload/lsp.el +++ b/modules/editor/format/autoload/lsp.el @@ -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