about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-lsp.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-09-20 16:01:36 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-20 16:01:36 +0100
commita495f3707144e365d6a5515e7ca1ca43626cc61f (patch)
tree415aa6bcb59dfcbfa9c6e07dce7f247323987a84 /.emacs.d/lisp/init-lsp.el
parent927909404450599a7c865675042d5c39dc41fad4 (diff)
downloaddotfiles-a495f3707144e365d6a5515e7ca1ca43626cc61f.tar.gz
Remove xref backend workaround
Diffstat (limited to '.emacs.d/lisp/init-lsp.el')
-rw-r--r--.emacs.d/lisp/init-lsp.el7
1 files changed, 0 insertions, 7 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el
index ff4b4ee..a66cf28 100644
--- a/.emacs.d/lisp/init-lsp.el
+++ b/.emacs.d/lisp/init-lsp.el
@@ -23,17 +23,10 @@
   :hook
   (clojure-mode . lsp)
   (lsp-lens-mode . really-diminish-lsp-lens-mode)
-  (lsp-mode . xref-prefer-cider)
   :config
   (defun really-diminish-lsp-lens-mode ()
     (diminish 'lsp-lens-mode)
     (remove-hook 'lsp-lens-mode-hook 'really-diminish-lsp-lens-mode))
-  (defun xref-prefer-cider ()
-    (when (and lsp-mode
-               (eq 'lsp--xref-backend (car xref-backend-functions))
-               (memq 'cider--xref-backend xref-backend-functions))
-      (remove-hook 'xref-backend-functions 'cider--xref-backend 'local)
-      (add-hook 'xref-backend-functions 'cider--xref-backend nil 'local)))
   (if (eq system-type 'darwin)
       (setq lsp-keymap-prefix "s-l")
     (setq lsp-keymap-prefix "C-c C-l"))