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

what is the omnifunc function in lua-ftplugin ? #6

Closed stardiviner closed 11 years ago

stardiviner commented 12 years ago

I use neocomplcache to complete, it set omnifunc like this:

au FileType python setlocal omnifunc=pythoncomplete#Complete

So I hope use lua complete in neocomplcache.

xolox commented 11 years ago

From ftplugin/lua.vim:

" Enable dynamic completion by searching "package.path" and "package.cpath".
setlocal omnifunc=xolox#lua#omnifunc