mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(format): void-variable callback when formatting w/ lsp-mode
Ref: #8182
This commit is contained in:
@ -51,7 +51,7 @@ mode unconditionally, call `+format-with-lsp-mode' instead."
|
|||||||
(funcall callback)
|
(funcall callback)
|
||||||
(funcall callback "LSP server doesn't support formatting")))
|
(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.
|
"Format the current buffer or region with any available lsp-mode formatter.
|
||||||
|
|
||||||
Won't forward the buffer to chained formatters if successful."
|
Won't forward the buffer to chained formatters if successful."
|
||||||
|
Reference in New Issue
Block a user