Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks tpope/vim-endwise #10

Open
Atcold opened this issue Nov 1, 2017 · 3 comments
Open

Breaks tpope/vim-endwise #10

Atcold opened this issue Nov 1, 2017 · 3 comments

Comments

@Atcold
Copy link

Atcold commented Nov 1, 2017

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
Copy link
Author

Atcold commented Nov 1, 2017

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

@f-person
Copy link

f-person commented Sep 4, 2020

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

@Atcold
Copy link
Author

Atcold commented Sep 6, 2020

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

idbrii added a commit to idbrii/vim-lua that referenced this issue Mar 13, 2022
Fix tbastos#10

Better would be pushing this plugin to vim runtime and getting endwise
to change. The change is additive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants