From 5e78ed09114fb1a22e2a050522b96c6f0d6df9e3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Jul 2024 14:28:59 -0400 Subject: [PATCH] refactor(format): use eglot-server-capable eglot--server-capable was deprecated. --- modules/editor/format/autoload/lsp.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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