Skip to content

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

Merged
folke merged 3 commits intofolke:mainfrom
mikesmithgh:lua_expr
Mar 23, 2023
Merged

feat(cmdline): Add format for := lua expr#405
folke merged 3 commits intofolke:mainfrom
mikesmithgh:lua_expr

Conversation

@mikesmithgh
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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