mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 10:31:23 -08:00
fix(format): void-variable callback when formatting w/ lsp-mode
Ref: #8182
This commit is contained in:
parent
0150f879ea
commit
c233aada0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue