27 lines
875 B
EmacsLisp
27 lines
875 B
EmacsLisp
(use-package cider
|
|
:ensure t)
|
|
|
|
(add-hook 'cider-repl-mode-hook (lambda () (display-line-numbers-mode -1)))
|
|
(add-hook 'cider-repl-mode-hook #'smartparens-mode)
|
|
(add-hook 'clojure-mode #'eglot-ensure t)
|
|
|
|
(setq-default cider-eldoc-display-for-symbol-at-point nil)
|
|
|
|
(defun mu-cider-disable-eldoc ()
|
|
"Let LSP handle ElDoc instead of CIDER."
|
|
(remove-hook 'eldoc-documentation-functions #'cider-eldoc t))
|
|
|
|
(add-hook 'cider-mode-hook #'mu-cider-disable-eldoc)
|
|
|
|
(defun mu-cider-disable-eldoc ()
|
|
"Let LSP handle ElDoc instead of CIDER."
|
|
(remove-hook 'eldoc-documentation-functions #'cider-eldoc t))
|
|
|
|
(add-hook 'cider-mode-hook #'mu-cider-disable-eldoc)
|
|
|
|
(defun mu-cider-disable-completion ()
|
|
"Let LSP handle completion instead of CIDER."
|
|
(remove-hook 'completion-at-point-functions #'cider-complete-at-point t))
|
|
|
|
(add-hook 'cider-mode-hook #'mu-cider-disable-completion)
|