vim-lua
vim-lua copied to clipboard
Breaks tpope/vim-endwise
tpope/vim-endwise lets you complete Lua code, adding an automatic end. This is done via the following code:
let b:endwise_addition = 'end'
let b:endwise_words = 'function,do,then'
let b:endwise_pattern = '^\s*\zs\%(\%(local\s\+\)\=function\)\>\%(.*\<end\>\)\@!\|\<\%(then\|do\)\ze\s*$'
let b:endwise_syngroups = 'luaFunction,luaStatement,luaCond'
The function completion does not work if this plugin is active. I'm not sure how to patch this.
I believe it's related to the syntax group luaFunction.
OK, adding luaFuncKeyword to the endwise_syngroups fixes it.
Is there a more elegant way to fix this?
Adding luaFuncKeyword to endwise_syngroups doesn't fix the issue for me.
Hi @f-person, I have moved to Python ever since. So, I'm afraid I won't be able to assist you this time.