fix(format): void function +format-with-lsp-maybe-h error
Regression introduced infd1941b
. Amend:fd1941b95f
This commit is contained in:
parent
6e19452f74
commit
7d25ba3f6c
2 changed files with 3 additions and 3 deletions
|
@ -176,7 +176,7 @@ enabled, and the running server supports =textDocument/formatting= or
|
||||||
=textDocument/rangeFormatting=, it can be used instead of
|
=textDocument/rangeFormatting=, it can be used instead of
|
||||||
[[doom-package:apheleia]]'s (or Doom's) default formatters by enabling this module
|
[[doom-package:apheleia]]'s (or Doom's) default formatters by enabling this module
|
||||||
with its =+lsp= flag or manually activating the [[fn:+format-with-lsp-mode]] minor
|
with its =+lsp= flag or manually activating the [[fn:+format-with-lsp-mode]] minor
|
||||||
mode (though it's a better idea to use [[fn:+format-with-lsp-maybe-h]] if you're
|
mode (though it's a better idea to use [[fn:+format-with-lsp-toggle-h]] if you're
|
||||||
looking for a function to use with mode hooks; this function will respect
|
looking for a function to use with mode hooks; this function will respect
|
||||||
pre-existing modifications to [[var:+format-with]]).
|
pre-existing modifications to [[var:+format-with]]).
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,8 @@ This is controlled by `+format-on-save-disabled-modes'."
|
||||||
|
|
||||||
;; Use the formatter provided by lsp-mode and eglot, if available.
|
;; Use the formatter provided by lsp-mode and eglot, if available.
|
||||||
(when (modulep! +lsp)
|
(when (modulep! +lsp)
|
||||||
(add-hook 'eglot-managed-mode-hook #'+format-with-lsp-maybe-h)
|
(add-hook 'eglot-managed-mode-hook #'+format-with-lsp-toggle-h)
|
||||||
(add-hook 'lsp-managed-mode-hook #'+format-with-lsp-maybe-h))
|
(add-hook 'lsp-managed-mode-hook #'+format-with-lsp-toggle-h))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(add-to-list 'doom-debug-variables '(apheleia-log-only-errors . nil))
|
(add-to-list 'doom-debug-variables '(apheleia-log-only-errors . nil))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue