File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1059,12 +1059,12 @@ vim-go/coc.nvim plugin Tips
1059
1059
\ }
1060
1060
1061
1061
1062
- " 以下是 coc.nvim 官方示例定义的快捷键
1062
+ " 以下是 coc.nvim 官方示例定义的快捷键。用好这几个快捷键可以给开发带来极大便利
1063
1063
" 跳转到变量定义。normal 模式下在一个变量名上按一下 gd 即可跳转到定义位置,然后ctrl-o 可以快速返回原位置
1064
1064
nmap < silent> gd < Plug> (coc- definition)
1065
1065
" 跳转到值的类型定义,或者跳转到函数的返回值类型。在你想要快速查找一个类型的结构的时候非常有用
1066
1066
nmap < silent> gy < Plug> (coc- type - definition)
1067
- " 跳转到 interface 接口的对应实现。比如查看go里一个 interface 被哪些 struct 实现了
1067
+ " 跳转到 interface 接口的对应实现。比如查看go里一个 interface 被哪些 struct 实现了。如果在 struct 名字上使用可以找到当前 struct 实现了哪些 interface
1068
1068
nmap < silent> gi < Plug> (coc- implementation)
1069
1069
" 打开当前变量、函数等被引用的列表。比如看一个 函数 在哪些地方使用了
1070
1070
nmap < silent> gr < Plug> (coc- references)
You can’t perform that action at this time.
0 commit comments