xolox / vim-lua-ftplugin

Lua file type plug-in for the Vim text editor
http://peterodding.com/code/vim/lua-ftplugin
187 stars 27 forks source link

Prevent automatically selecting first option on autocomplete menu popup #46

Open dpino opened 7 years ago

dpino commented 7 years ago

I've been experiencing a problem related with autocomplete of Lua keywords. On pressing dot, Vim automatically picks up the first choice.

For instance, if I type "table", then on typing ".", Vim automatically autocompletes with "concat" which is the first menu entry. Then I have to remove "concat" to see all the possible options.

I don't know whether other users experienced the same issue. But it seems it's a common problem related with Vim's autocomplete. See:

https://github.com/davidhalter/jedi-vim/issues/32

The patch fixes the issue in a similar fashion as in the link pasted above. Downside is that complete menu do not marks any choice. To pick up one is necessary to press "down" and then return.

milin commented 6 years ago

I can confirm this happens on python as well with jedi-vim

idbrii commented 6 years ago

I don't experience this issue in lua with xolox/vim-lua-ftplugin, but I don't have jedi-vim.