diff options
author | Guangxiong Lin <[email protected]> | 2024-02-05 14:18:13 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2024-02-05 14:18:13 +0800 |
commit | cc10e1723edb546ddda86400792d24309bfa8bc7 (patch) | |
tree | eeb53a996a64ff4f38e623c2ec60acdae3ecdb7c /.vim/after/plugin/yegappan-lsp.vim | |
parent | 2c690979c46d065c1cc39fd32e747f4f36f6a774 (diff) | |
download | dotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.tar.gz dotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.tar.bz2 dotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.zip |
Add vim map
Diffstat (limited to '.vim/after/plugin/yegappan-lsp.vim')
-rw-r--r-- | .vim/after/plugin/yegappan-lsp.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.vim/after/plugin/yegappan-lsp.vim b/.vim/after/plugin/yegappan-lsp.vim index 3c1a9dc..c767efe 100644 --- a/.vim/after/plugin/yegappan-lsp.vim +++ b/.vim/after/plugin/yegappan-lsp.vim @@ -38,6 +38,7 @@ function! s:on_lsp_attached() abort nnoremap <buffer> <localleader>rn :LspRename<CR> nnoremap <buffer> gr :LspShowReferences<CR> + nnoremap <buffer> gI <Cmd>LspGotoImpl<CR> autocmd! BufWritePre *.rs,*.go call execute('LspFormat') autocmd! BufRead *.go,*.rs setlocal tagfunc=lsp#lsp#TagFunc |