fix(format): void-variable callback when formatting w/ lsp-mode

Ref: #8182
This commit is contained in:
Henrik Lissner
2025-04-10 19:12:51 -04:00
parent 0150f879ea
commit c233aada0b

View File

@ -51,7 +51,7 @@ mode unconditionally, call `+format-with-lsp-mode' instead."
(funcall callback)
(funcall callback "LSP server doesn't support formatting")))
(cl-defun +format--with-lsp-mode (beg end &key buffer &allow-other-keys)
(cl-defun +format--with-lsp-mode (beg end &key buffer callback &allow-other-keys)
"Format the current buffer or region with any available lsp-mode formatter.
Won't forward the buffer to chained formatters if successful."