maralla / completor.vim

Async completion framework made ease.
MIT License
1.31k stars 62 forks source link

g:completor_select_first #163

Closed dNitro closed 6 years ago

dNitro commented 6 years ago

Could we have an option, if set to True, the first item will became always selected. This way the first item is always in focus(highlighted) and also we could select the matched item without extra mapping of Tab or Return keys and just by hitting them.

maralla commented 6 years ago

You can update completor to the latest commit and use the following config to select the first item automatically:

let g:completor_set_options = 0
set cot=preview,menuone
dNitro commented 6 years ago

Tanx. Of course i also add noinsert to completeopt option and the result is exactly the desired one:

let g:completor_set_options = 0
set cot=preview,menuone,noinsert