"g u" key binding for Emacs

This commit is contained in:
2022-05-13 12:36:26 -07:00
parent 839f39cf23
commit ac1dbf979c
3 changed files with 5 additions and 2 deletions

View File

@@ -121,3 +121,7 @@
(define-key company-active-map (kbd "<return>") nil)
(define-key company-active-map (kbd "RET") nil)
(define-key company-active-map (kbd "C-SPC") #'company-complete-selection))
;; "g u" in normal mode finds references, using LSP if available
(map! :n "g u" #'xref-find-references)
(map! :mode lsp-mode :n "g u" #'lsp-ui-peek-find-references)

View File

@@ -80,7 +80,7 @@
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
lsp
(lsp +peek)
;;macos ; MacOS-specific commands
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs