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

Lua version #1

Open
riotrah opened this issue May 12, 2024 · 2 comments
Open

Lua version #1

riotrah opened this issue May 12, 2024 · 2 comments

Comments

@riotrah
Copy link

riotrah commented May 12, 2024

Hi!

I've found a couple of your various threads and posts about parsing the docsite and generating EEL snippets from it. I think this is so great.

Even if you're too busy/don't use lua reascript, would you be able to help guide what steps it might take to reimplement this for lua? Never written a nvim plugin, tho it might not hurt to use this as an excuse to try out Fennel.

Also, I don't use a posix machine for reaper (tho I could of course spin up WSL), so I think a next step would be to reimplement the docsite parser via something like python or even pwsh - in that case, if I ever get around to doing that, would you be interested in a backport?

@NlGHT
Copy link
Owner

NlGHT commented May 13, 2024

Hey! Cool to have you here!

So in terms of adding lua support, I didn't do it here because lua has indentation/syntax highlighting support from so many other sources that people (including myself) already have on like vim-polyglot. ReaScript Lua seems to just basically be Lua with REAPER functions.

That being said, there obviously would be a ton of benefit in having the snippets. So I might actually get around to getting them up and running. My eventual plan for snippets was to have them not be part of the repo and instead a function to run in Vim (like PlugUpdate) so that you wouldn't HAVE to download them if you didn't want snippets.

I think I will make a separate repo that is just an implementation of the snippet generator for all the ReaScript languages. That way you can just have this plugin for EEL language support (indent and syntax) and the other for getting any snippets with some sort of function like :ReaScriptSnippetsUpdate or something.

I'll get back to you with it, might implement it this evening even!

@NlGHT
Copy link
Owner

NlGHT commented May 14, 2024

Alright @riotrah I have made it!

This project is currently still in its infancy, but give it a little test drive and let me know what you think!
https://github.com/NlGHT/vim-reasyntax

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