aganm
aganm

Reputation: 1369

How to autocomplete lua in vim?

I can't get lua to autocomplete in vim. I tried lua-ftplugin which installs fine because I can perform one of its features, but when I type standard lua functions, it doesn't autocomplete.

What am I doing wrong?

I tried a clean vimrc with nothing but the lua plugin install:

call plug#begin()
Plug 'xolox/vim-misc'
Plug 'xolox/vim-lua-ftplugin'
call plug#end()

Upvotes: 1

Views: 2671

Answers (1)

Kirill Bugaev
Kirill Bugaev

Reputation: 390

I know one indirect method to enable vim-lua-ftplugin autocompletion. Install vim-mucomplete and enable g:lua_complete_omni option in .vimrc. But as described in vim-lua-ftplugin manual enabling this option may have undesired side effects. Also you can use vim-luacomplete plugin in pair with vim-mucomplete instead of vim-lua-ftplugin.

Upvotes: 1

Related Questions