vim-lua icon indicating copy to clipboard operation
vim-lua copied to clipboard

Breaks tpope/vim-endwise

Open Atcold opened this issue 8 years ago • 3 comments

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.

Atcold avatar Nov 01 '17 22:11 Atcold

OK, adding luaFuncKeyword to the endwise_syngroups fixes it. Is there a more elegant way to fix this?

Atcold avatar Nov 01 '17 22:11 Atcold

Adding luaFuncKeyword to endwise_syngroups doesn't fix the issue for me.

f-person avatar Sep 04 '20 19:09 f-person

Hi @f-person, I have moved to Python ever since. So, I'm afraid I won't be able to assist you this time.

Atcold avatar Sep 06 '20 18:09 Atcold