diff options
author | David Morgan <djm_uk@protonmail.com> | 2021-09-20 16:01:36 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2021-09-20 16:01:36 +0100 |
commit | a495f3707144e365d6a5515e7ca1ca43626cc61f (patch) | |
tree | 415aa6bcb59dfcbfa9c6e07dce7f247323987a84 | |
parent | 927909404450599a7c865675042d5c39dc41fad4 (diff) | |
download | dotfiles-a495f3707144e365d6a5515e7ca1ca43626cc61f.tar.gz |
Remove xref backend workaround
-rw-r--r-- | .emacs.d/lisp/init-lsp.el | 7 |
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")) |