From 650af4ca816c831b5218676cbd57f4fe019fd121 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 17 Feb 2019 22:41:36 -0500 Subject: [PATCH] Add keybindings for lsp find defs and refs --- emacs/init.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index e2a1276..9c1a9fb 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -974,8 +974,9 @@ Emacs support for the Language Server Protocol #+BEGIN_SRC emacs-lisp (use-package lsp-mode - :config - (leader-def-key "cd" #'xref-find-definitions)) + :general + ('normal lsp-mode-map "SPC cd" #'lsp-find-definition) + ('normal lsp-mode-map "SPC cr" #'lsp-find-references)) (use-package company-lsp :after (company)