Cleanup/add lsp ui config

This commit is contained in:
Adam Goldsmith 2018-10-04 15:02:11 -04:00
parent d4c758d6dd
commit 4913ce8045

View File

@ -460,10 +460,13 @@
company-lsp-cache-candidates t)) company-lsp-cache-candidates t))
(use-package lsp-ui :ensure (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 :config
(setq lsp-ui-sideline-ignore-duplicate t (setq lsp-ui-sideline-ignore-duplicate t
lsp-ui-sideline-update-mode 'point) lsp-ui-sideline-update-mode 'point))
(add-hook 'lsp-mode-hook 'lsp-ui-mode))
(use-package lsp-python (use-package lsp-python
;; requires python-language-server and/or python2-language-server ;; requires python-language-server and/or python2-language-server