fix(clojure): adjust buffer-local hook, not global

Though the global side-effect likely had no effect, it's better that our
hacks don't overstep their bounds.
This commit is contained in:
Henrik Lissner 2022-06-17 21:58:54 +02:00
parent 15432cf9d2
commit 7d8b7b4fc2
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -87,7 +87,7 @@
(add-hook! 'cider-mode-hook
(defun +clojure--cider-disable-completion ()
"Use lsp completion instead of cider."
(remove-hook 'completion-at-point-functions #'cider-complete-at-point))))
(remove-hook 'completion-at-point-functions #'cider-complete-at-point t))))
;; Error messages emitted from CIDER is silently funneled into *nrepl-server*
;; rather than the *cider-repl* buffer. How silly. We might want to see that