Skip to content

Commit 786290f

Browse files
iNecasyyoncho
authored andcommitted
Fix disabling lsp-ui-doc-mode (#216)
The disable function was not removing the `lsp-ui-doc--on-hover` from the `lsp-on-hover-hook` because of missing `local` flag.
1 parent efdd4a8 commit 786290f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ui-doc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ HOVER is the returned signature information."
599599
(add-hook 'lsp-on-hover-hook 'lsp-ui-doc--on-hover nil t)
600600
(add-hook 'delete-frame-functions 'lsp-ui-doc--on-delete nil t))
601601
(t
602-
(remove-hook 'lsp-on-hover-hook 'lsp-ui-doc--on-hover)
602+
(remove-hook 'lsp-on-hover-hook 'lsp-ui-doc--on-hover t)
603603
(remove-hook 'delete-frame-functions 'lsp-ui-doc--on-delete t))))
604604

605605
(defun lsp-ui-doc-enable (enable)

0 commit comments

Comments
 (0)