feat(lsp): makes gr find references

Adds gr to finding references, as `kickstart.nvim` does.
This commit is contained in:
Rahul Martim Juliato
2024-10-10 16:19:34 -03:00
parent d2bbff8eca
commit 6f7cb55338

View File

@@ -933,8 +933,8 @@
;; LSP commands keybindings ;; LSP commands keybindings
(evil-define-key 'normal lsp-mode-map (evil-define-key 'normal lsp-mode-map
;; (kbd "gd") 'lsp-find-definition ;; Emacs already provides a better gd ;; (kbd "gd") 'lsp-find-definition ;; evil-collection already provides gd
;; (kbd "gr") 'lsp-find-references ;; Emacs already provides a better gr (kbd "gr") 'lsp-find-references ;; Finds LSP references
(kbd "<leader> c a") 'lsp-execute-code-action ;; Execute code actions (kbd "<leader> c a") 'lsp-execute-code-action ;; Execute code actions
(kbd "<leader> r n") 'lsp-rename ;; Rename symbol (kbd "<leader> r n") 'lsp-rename ;; Rename symbol
(kbd "gI") 'lsp-find-implementation ;; Find implementation (kbd "gI") 'lsp-find-implementation ;; Find implementation