From a495f3707144e365d6a5515e7ca1ca43626cc61f Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 20 Sep 2021 16:01:36 +0100 Subject: Remove xref backend workaround --- .emacs.d/lisp/init-lsp.el | 7 ------- 1 file changed, 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")) -- cgit 1.4.1-2-gfad0