Old 06-30-2020, 03:24 PM   #1
aRMARa
Human being with feelings
 
Join Date: Jun 2020
Posts: 6
Default Reascript: Using Vim or Neovim as a text editor

Hola everyone,

Main reason for switching from sublime text 3 with reasyntax plugin (as recommended by ExtemRaym's reascript course) to neovim is for strong customisability and editability. I will be using deoplete for auto completion and ultisnips for snippet functionality.

Now, it looks like I have two options. Which are:

1. Create a parser for reascript api doc to convert it into ultisnip snippets or

2. Research in to converting sublime text 3's snippets in to ultisnips snippets to be used in neovim.

Both will be an interesting approach. Especially no. 1 as that will be a great challenge to write and will be a good exercise because I will be writing it in lua if possible.

Please if anybody here is already using a similar set up or have an input, please enlighten me on a better way if there are any. All directions would be welcome.

Thanks!
aRMARa is offline   Reply With Quote
Old 07-04-2020, 07:15 AM   #2
Night
Human being with feelings
 
Join Date: Jun 2017
Posts: 5
Default REALLY want to see this happen too!

I planned to do attempt this a long time ago, but still really want to see it and am curious on your progress! I have made a parser for all the languages in shell already actually as I wanted to do this. It supports removing the returns of the functions as well as removing the array methods in Lua. You can find and are very welcome to use it or join in and perhaps contribute here (Can't upload here because of file restrictions): https://github.com/NlGHT/Night-REAPE...etReaScriptAPI I will be continuing to support for it for a while and add possibly add any new features people want.

I am considering just putting this script online as a url you can request with something like curl so that anyone can request the latest parsed documentation anywhere.

You seem to want the challenge of the parser though, so you can of course write your own if you want. But just letting you know it's there.

This topic was lightly touched on in an older forum post for EMACS which had a mode for EMACS that included a parser:
https://forum.cockos.com/showthread....ighlight=emacs
That one is very old and the parsing script I couldn't get to work anymore (also still uses python2).

When someone asks for Vim, another points out that there is a language file for EEL:
https://github.com/justinfrankel/WDL.../eel2/eel2.vim
But, it's really more of a slightly modified C syntax file. Doesn't really do much in terms of auto-completion and still highlights C features that aren't in EEL.

Lua could be very interesting though because of its existing LSP and support in Vim auto-completion plugins.

Would love to see some progress with this and I hope you find the script useful!

Last edited by Night; 07-04-2020 at 07:17 AM. Reason: Saying I will continue to support and update my script
Night is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.