From 4913ce804549ed855d9703cee99cb112967d624d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 4 Oct 2018 15:02:11 -0400 Subject: [PATCH] Cleanup/add lsp ui config --- .emacs.d/init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e043495..5093d90 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -460,10 +460,13 @@ company-lsp-cache-candidates t)) (use-package lsp-ui :ensure + :bind (:map lsp-ui-mode-map + ([remap xref-find-definitions] . lsp-ui-peek-find-definitions) + ([remap xref-find-references] . lsp-ui-peek-find-references)) + :hook (lsp-mode . lsp-ui-mode) :config (setq lsp-ui-sideline-ignore-duplicate t - lsp-ui-sideline-update-mode 'point) - (add-hook 'lsp-mode-hook 'lsp-ui-mode)) + lsp-ui-sideline-update-mode 'point)) (use-package lsp-python ;; requires python-language-server and/or python2-language-server