maralla / completor.vim

Async completion framework made ease.
MIT License
1.29k stars 63 forks source link

`set cot-=preview` can not disable autodoc #212

Closed TeYoMe closed 6 years ago

TeYoMe commented 6 years ago

os: win10, python3.6,vim8.1

我在vimrc 中添加了 set cot-=preview 设置,但是在补全python时,文档窗口在某些情况下仍然会自动弹出 比如,输入 imp 然后按 键补全时,文档窗口会自动弹出 下面是我vimrc中相应的设置

let g:completor_python_binary = 'C:\Users\Huang\Envs\django\Scripts\python'
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"

set cot-=preview

请问应该怎么设置才能禁止文档窗口自动弹出 或者能否增加一个按键映射,比如,按 K 键时激活文档窗口的功能

maralla commented 6 years ago

https://github.com/maralla/completor.vim/blob/master/README.md#complete-options-completeopt

TeYoMe commented 6 years ago

let g:completor_complete_options = 'menuone,noselect,preview' 我加上了这个设置,但是还是不行,而且我还在另一台ubuntu的机器上进行测试,结果还是一样~~

maralla commented 6 years ago

@TeYoMe let g:completor_complete_options='menuone,noselect'

TeYoMe commented 6 years ago

@maralla 可以了,谢谢!