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

feat(cmdline): Add format for := lua expr #405

Merged
merged 3 commits into from
Mar 23, 2023
Merged

Conversation

mikesmithgh
Copy link
Contributor

Hey @folke there was a new commit on nightly neovim/neovim@a92b389 with a shorthand syntax := for :lua cmdline. This feature is to match the pattern and format with the lua icon.

My autoformatter added the whitespace, let me know if you want me to remove it.

The := {expr} syntax can be used to evaluate a lua expression, as
a shorter form of :lua ={expr}. := and :[range]= without argument
are unchanged. However :=# and similar variants using |ex-flags|
are no longer supported.

@folke folke merged commit acfa513 into folke:main Mar 23, 2023
@folke
Copy link
Owner

folke commented Mar 23, 2023

Thank you for this PR!

I've changed the implementation quite a bit so that multiple patterns are now allowed for a cmdline item.
Also added better support for :lua=

@mikesmithgh
Copy link
Contributor Author

Thank you for this PR!

I've changed the implementation quite a bit so that multiple patterns are now allowed for a cmdline item. Also added better support for :lua=

awesome, 👍 just gave it test and looks good to me.

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

Successfully merging this pull request may close these issues.

2 participants