Merge pull request #4120 from systemctl603/develop

Format with LSP if supported on save
This commit is contained in:
Henrik Lissner 2020-10-21 12:03:22 -04:00 committed by GitHub
commit 86841da12f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ This is controlled by `+format-on-save-enabled-modes'."
(memq major-mode (cdr +format-on-save-enabled-modes)))
((not (memq major-mode +format-on-save-enabled-modes))))
(not (require 'format-all nil t)))
(format-all-mode +1)))
(+format-enable-on-save-h)))
(when (featurep! +onsave)
(add-hook 'after-change-major-mode-hook #'+format-enable-on-save-maybe-h))