Remove lsp-restart in format-all-after hook
This commit is contained in:
parent
eb1affbc13
commit
2f01a82bd5
@ -5398,15 +5398,7 @@ A package that bundles together common code beautifying tools for many languages
|
||||
(use-package format-all
|
||||
:commands (format-all-buffer)
|
||||
:init
|
||||
(leader-def-key "cf" 'format-all-buffer)
|
||||
:config
|
||||
(with-eval-after-load 'lsp-mode
|
||||
(add-hook 'format-all-after-format-functions
|
||||
(lambda (formatter status)
|
||||
(when (and (eq status :reformatted)
|
||||
(equal major-mode 'python-mode)
|
||||
(boundp 'lsp-mode) lsp-mode)
|
||||
(lsp-restart-workspace))))))
|
||||
(leader-def-key "cf" 'format-all-buffer))
|
||||
#+END_SRC
|
||||
|
||||
* Compiling
|
||||
|
Loading…
Reference in New Issue
Block a user