From 15dca42666aef18a35ea2acba0a1ad6ca8cc1667 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Mon, 20 Apr 2020 14:20:39 +0200 Subject: [PATCH] LSP: Add LSP-UI keybindings by remapping xref functions --- config.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 2b965d7..27bcab9 100644 --- a/config.org +++ b/config.org @@ -944,12 +944,17 @@ https://github.com/joaotavora/yasnippet :ensure t :config (setq lsp-ui-doc-position (quote top)) + (define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions) + (define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references) + (define-key lsp-ui-mode-map [remap complete-symbol] #'company-complete) ) (use-package company-lsp :ensure t :commands company-lsp - :config (push 'company-lsp company-backends)) ;; add company-lsp as a backend + :config + (push 'company-lsp company-backends) ;; add company-lsp as a backend +) (use-package ccls :ensure t