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

Getting completion for an embedded interpreter #37

Open oliviertilmans opened 9 years ago

oliviertilmans commented 9 years ago

Hello,

I'm trying to understand how I could use this plugin to get completion to work for an embedded lua interpreter. Basically, this embedded interpreter is pre-loaded with a lot of globals and metatables. My best guess is that I need to either write some spec files to specify everything 'extra' I provide and/or dump them in a skeleton lua file from these specs that I would feed to this plugin.

Are there any standard way to do this?

Thanks!

limadm commented 8 years ago

This plugin is written in VimScript. Are you embedding a new lua interpreter in Vim?