-
-
Notifications
You must be signed in to change notification settings - Fork 927
Open
Description
Line 4236 in 3a96df0
(lsp--update-on-type-formatting-hook) |
Lines 4175 to 4182 in 3a96df0
(defun lsp--update-on-type-formatting-hook (&optional cleanup?) | |
(let ((on-type-formatting-handler (lsp--on-type-formatting-handler-create))) | |
(cond | |
((and lsp-enable-on-type-formatting on-type-formatting-handler (not cleanup?)) | |
(add-hook 'post-self-insert-hook on-type-formatting-handler nil t)) | |
((or cleanup? | |
(not lsp-enable-on-type-formatting)) | |
(remove-hook 'post-self-insert-hook on-type-formatting-handler t))))) |
When lsp-enable-on-type-formatting
is nil at startup, (lsp--on-type-formatting-handler-create)
should not be executed.
Metadata
Metadata
Assignees
Labels
No labels