Execute Lua code with Nvim-Lua (like luafile %) #60
RayJameson
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
@RayJameson Could you show me a screenshot showing me what that code does? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello @CRAG666
Thank you for your wonderful plugin, my workflow wouldn't be the same without it.
I would like to extend plugin functionality with my idea:
Problem:
When I run lua code I can use something like:
and it works fine, but it uses system binary for running code and if you want to run nvim-lua interpretator you should use
luafile %
but output of this command is ugly and you can't do anything with it like move around/copy etc.I wrote function and command for it to make it look better so I wonder if you would like to make it default for running Lua code since LuaJit comes with Nvim natively.
Also it would be useful because you can run NeoVim functions like this
I don't have experience for writing plugins and would appreciate some guidance if you like my idea.
My Lua function:
Beta Was this translation helpful? Give feedback.
All reactions