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-04 16:07:37 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-04 16:07:37 +0100
commitf39ad1ef97d06f725366efc52ba37ccac2ead1cf (patch)
tree99bb70ad3a4a4241751d39f1d7edad02c17bcb9a /.emacs.d/lisp/init-lsp.el
parent4993f88d433ba1ee80cb0865c044768181b577f8 (diff)
downloaddotfiles-f39ad1ef97d06f725366efc52ba37ccac2ead1cf.tar.gz
Turn off lsp breadcrumbs and peeking for xrefs, and tweak other lsp settings
Diffstat (limited to '.emacs.d/lisp/init-lsp.el')
-rw-r--r--.emacs.d/lisp/init-lsp.el13
1 files changed, 5 insertions, 8 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el
index e66eb24..ec115ef 100644
--- a/.emacs.d/lisp/init-lsp.el
+++ b/.emacs.d/lisp/init-lsp.el
@@ -11,10 +11,12 @@
 (use-package lsp-mode
   :diminish
   :hook (clojure-mode . lsp)
-  :config
+  :init
   (if (eq system-type 'darwin)
       (setq lsp-keymap-prefix "s-l")
     (setq lsp-keymap-prefix "C-c C-l"))
+  :config
+  (diminish 'lsp-lens-mode)
   (setq read-process-output-max (* 1024 1024)
         lsp-ui-sideline-enable t
         lsp-ui-peek-enable t
@@ -24,8 +26,7 @@
         lsp-ui-doc-enable t
         lsp-ui-doc-show-with-cursor t
         lsp-ui-doc-show-with-mouse t
-        lsp-headerline-breadcrumb-enable t
-        lsp-headerline-breadcrumb-enable-diagnostics nil
+        lsp-headerline-breadcrumb-enable nil
         lsp-enable-symbol-highlighting t
         lsp-ui-sideline-show-diagnostics t
         lsp-ui-sideline-show-code-actions nil
@@ -35,11 +36,7 @@
         lsp-treemacs-theme "Iconless"
         ;; user cider for indendation and completion instead
         lsp-enable-indentation nil
-        lsp-completion-enable nil)
-  :bind
-  (:map lsp-ui-mode-map
-        ([remap xref-find-definitions] . lsp-ui-peek-find-definitions)
-        ([remap xref-find-references] . lsp-ui-peek-find-references)))
+        lsp-completion-enable nil))
 
 (provide 'init-lsp)
 ;;; init-lsp.el ends here