# HG changeset patch # User Meredith Howard # Date 1619316326 18000 # Node ID 4bcbc5edab741dbe9f1a2ec9a0b31c306d65fd95 # Parent 760d4f0ca87bbce08a574aa3d861c3cfd35b95a1 Add more LSP maps diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -120,10 +120,16 @@ noremap a :call vimrc#A " Maps that only apply when an LSP is available func! s:on_lsp_buffer_enabled() abort setl omnifunc=lsp#complete - nmap (lsp-hover) - nmap gd (lsp-definition) - nmap ]d (lsp-next-diagnostic) - nmap [d (lsp-previous-diagnostic) + nmap (lsp-hover) + nmap gd (lsp-definition) + nmap gr (lsp-references) + nmap gt (lsp-peek-type-definition) + nmap ]d (lsp-next-diagnostic) + nmap [d (lsp-previous-diagnostic) + nmap ]r (lsp-next-reference) + nmap [r (lsp-previous-reference) + nmap rn (lsp-rename) + nmap gt (lsp-type-definition) endfunc " Commands & Aliases {{{