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

Can't get neocomplete working with custom modules. #36

Open JosephFerano opened 9 years ago

JosephFerano commented 9 years ago

I'm trying to contribute to the following project; Hammerspoon

They have an "extensions" folder that contains all of the main lua modules. I'm basically trying to get completion for those modules. This is what I'm getting;

img

It's working with the standard modules; img

For my lua settings, all I have is this;

let g:lua_check_syntax = 0
let g:lua_complete_omni = 1

I haven't done much in the way of neocomplete settings, this is just a preliminary regex to test it out;

let g:neocomplete#sources#omni#input_patterns.lua = '[^. \t]:\w*'

I appreciate the help and nice plugin!

stormc commented 9 years ago

What is your $LUA_PATH set to? Does it include Hammerspoon's folders? If not, set it to include those folders.