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

Using the asynchronous support in Vim 8 #57

Open
melted opened this issue Sep 18, 2016 · 2 comments
Open

Using the asynchronous support in Vim 8 #57

melted opened this issue Sep 18, 2016 · 2 comments

Comments

@melted
Copy link
Contributor

melted commented Sep 18, 2016

Can that help bring more ide-mode features in?

@LeifW
Copy link
Contributor

LeifW commented Sep 22, 2016

I was looking into that myself (using http://vimhelp.appspot.com/channel.txt.html for http://docs.idris-lang.org/en/latest/reference/ide-protocol.html).
Apparently older versions supported that, too. I was playing around with driving my vim 7.4.2334 from Haskell, using these commands (to avoid writing vimscript): http://vimhelp.appspot.com/channel.txt.html#channel-commands).
So for a case split for example, I could have it send the normal mode commands dd followed by p = followed by the new line to be added.

I was thinking I might like of offer a json version of the ide protocol, to avoid writing an s-expr parser. Most editors I can think of come with a json parser.

@david-christiansen
Copy link
Member

A sexpr parser is like 10 lines typically, so I don't think that making Idris emit 2 syntaxes is worth the maintenance burden. Though we could completely replace the protocol, I suppose.

On September 22, 2016 11:22:55 AM GMT+09:00, Leif Warner [email protected] wrote:

I was looking into that myself (using
http://vimhelp.appspot.com/channel.txt.html for
http://docs.idris-lang.org/en/latest/reference/ide-protocol.html).
Apparently older versions supported that, too. I was playing around
with driving my vim 7.4.2334 from Haskell, using these commands (to
avoid writing vimscript):
http://vimhelp.appspot.com/channel.txt.html#channel-commands).
So for a case split for example, I could have it send the normal mode
commands dd followed by p = followed by the new line to be added.

I was thinking I might like of offer a json version of the ide
protocol, to avoid writing an s-expr parser. Most editors I can think
of come with a json parser.

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

3 participants