aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2024-02-05 14:18:13 +0800
committerGuangxiong Lin <[email protected]>2024-02-05 14:18:13 +0800
commitcc10e1723edb546ddda86400792d24309bfa8bc7 (patch)
treeeeb53a996a64ff4f38e623c2ec60acdae3ecdb7c
parent2c690979c46d065c1cc39fd32e747f4f36f6a774 (diff)
downloaddotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.tar.gz
dotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.tar.bz2
dotfiles-cc10e1723edb546ddda86400792d24309bfa8bc7.zip
Add vim map
-rw-r--r--.vim/after/plugin/yegappan-lsp.vim1
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