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

Omni completion not compatible with strict.lua #27

Closed xolox closed 10 years ago

xolox commented 10 years ago

In issue #25 @actionless reported the following:

when i trying to complete any lua code i receiving an error:

Error detected while processing function xolox#lua#omnifunc..xolox#lua#getomnivariables..xolox#lua#dofile:
line    4:
E121: Undefined variable: output
Press ENTER or type command to continue
Error detected while processing function xolox#lua#omnifunc..xolox#lua#getomnivariables..xolox#lua#dofile:
line   31:
...ndle/vim-lua-ftplugin/misc/lua-ftplugin/omnicomplete.lua:85: variable 'ldoc.builtin.io' is not declared
Press ENTER or type command to continue
Error detected while processing function xolox#lua#omnifunc..xolox#lua#getomnivariables:
line    3:
E121: Undefined variable: Error

Although I've never personally used strict.lua I am familiar with it so I recognized the error message "variable '...' is not declared". This should be pretty easy to fix.

xolox commented 10 years ago

@actionless: Can you confirm whether this is fixed in the latest version?

actionless commented 10 years ago

@xolox, it is, thanks for the quick fix

xolox commented 10 years ago

Okay, good to hear. Thanks for the bug report and confirmation. I'll go ahead and close this issue now. Happy Vimming!