blob: 804fcc73a228298d390b9dcf407b2d424bc86cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
(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)
|