diff options
Diffstat (limited to '.emacs.d/lisp/init-lsp.el')
-rw-r--r-- | .emacs.d/lisp/init-lsp.el | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el index 4b72759..e66eb24 100644 --- a/.emacs.d/lisp/init-lsp.el +++ b/.emacs.d/lisp/init-lsp.el @@ -6,9 +6,10 @@ :config (require 'lsp-ui-imenu)) +(use-package lsp-treemacs) + (use-package lsp-mode :diminish - :after key-chord :hook (clojure-mode . lsp) :config (if (eq system-type 'darwin) @@ -19,11 +20,12 @@ lsp-ui-peek-enable t lsp-ui-peek-always-show t lsp-ui-doc-delay 1 - lsp-lens-enable nil + lsp-lens-enable t lsp-ui-doc-enable t lsp-ui-doc-show-with-cursor t lsp-ui-doc-show-with-mouse t - lsp-headerline-breadcrumb-enable nil + lsp-headerline-breadcrumb-enable t + lsp-headerline-breadcrumb-enable-diagnostics nil lsp-enable-symbol-highlighting t lsp-ui-sideline-show-diagnostics t lsp-ui-sideline-show-code-actions nil @@ -34,16 +36,10 @@ ;; user cider for indendation and completion instead lsp-enable-indentation nil lsp-completion-enable nil) - (key-chord-define-global "QQ" 'lsp-find-references) - (key-chord-define-global "PP" 'lsp-peek-find-references) - (key-chord-define-global "GG" 'lsp-find-definition) - (key-chord-define-global "DD" 'lsp-peek-find-definitions) :bind (:map lsp-ui-mode-map ([remap xref-find-definitions] . lsp-ui-peek-find-definitions) ([remap xref-find-references] . lsp-ui-peek-find-references))) -(use-package lsp-treemacs) - (provide 'init-lsp) ;;; init-lsp.el ends here |