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

Interferes with YouCompleteMe: annoying closing of popup menu, resetting of what you have typed #22

Open blueyed opened 10 years ago

blueyed commented 10 years ago

The options g:lua_complete_library and g:lua_complete_dynamic interfere with YouCompleteMe etc: the automatic popup from YCM appears, gets closed and the word is being reset. The popup menu gets closed.

The problem is probably, that the completion (e.g. <C-x><C-o>, see https://github.com/xolox/vim-lua-ftplugin/blob/master/autoload/xolox/lua.vim#L436-440) should not get done if pumvisible() is true.

Took me a good amount of frustration to dig into what's causing this strange behavior.

FWIW, these are the settings I am currently using:

let g:lua_check_syntax = 0 " done via syntastic let g:lua_define_omnifunc = 0 " must be enabled also (g:lua_complete_omni=1, but crashes Vim!) let g:lua_complete_library = 0 " interferes with YouCompleteMe let g:lua_complete_dynamic = 0 " interferes with YouCompleteMe