如何selectnvim提示的代码,并跳转到提示的文档

How to select the code prompted by nvim ,and jump to the prompted document

我正在使用 coc-rust-anaylzer 插件 现在的问题是我只能看到一个提示,但是我不知道如何select他给我的选项,我试过回车,这只会破坏行并没有 select 它,我也试过 tab 键,它不起作用,它不会 select 选项,只能切换选项。而当我想详细查看文档中的某个特定选项时,我不知道如何切换到那个文档框来更仔细地查看它,有没有办法或material直接或间接帮助解决这个问题

您可以将您的 <cr> 映射到 select 完成项目:

inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
                              \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"