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

Agda Support #4465

Open
oati opened this issue Oct 25, 2022 · 7 comments
Open

Agda Support #4465

oati opened this issue Oct 25, 2022 · 7 comments
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements

Comments

@oati
Copy link
Contributor

oati commented Oct 25, 2022

I don't exactly know what editor features helix would need for a complete agda experience. I'm hoping someone more experienced with agda could help with this.

Agda has an issue for LSP support: agda/agda#3758
There is an implementation: https://github.com/banacorn/agda-language-server

It seems like helix would need

  • unicode input (although you could just use a compose key)
  • support for holes
  • special commands and messages (this would probably be more appropriate as a plugin, unless LSP supports language-specific custom commands)

I also don't know how much should be handled by the LSP server and not helix.

Possibly relevant: microsoft/language-server-protocol#1414

@oati oati added the C-enhancement Category: Improvements label Oct 25, 2022
@kirawi kirawi added the A-language-support Area: Support for programming/text languages label Nov 9, 2022
@pretentious7
Copy link

I'd started on this in a branch (only stubs im afraid) #3092

I'd be happy to collaborate, but I'm also an agda novice.

@blitzerr
Copy link

@pretentious7 thank you for doing this. Any further progress on this one ? I am unsure about how actively ASL is being developed. Is there any chance we can incorporate the Agda-mode like they have for emacs ?

@pretentious7
Copy link

I got a bit bamboozled by the als source (and agda in general...), I'll make another go of it in a couple months.

I'd like agda-mode type hole completion and stuff would be cool.

@omentic
Copy link
Contributor

omentic commented Sep 17, 2023

@pretentious7 Were you ever able to get als working?

I have pretty-good syntax highlighting working in #8285. I've been trying to get it to highlight function implementations to unfortunately no avail yet. The LSP has absolutely been mind-boggling though - I can't figure out what it's doing, let alone why it doesn't work - it seems to be failing to handle even basic file-was-saved events?

image

@pretentious7
Copy link

@pretentious7 Were you ever able to get als working?

I have pretty-good syntax highlighting working in #8285. I've been trying to get it to highlight function implementations to unfortunately no avail yet. The LSP has absolutely been mind-boggling though - I can't figure out what it's doing, let alone why it doesn't work - it seems to be failing to handle even basic file-was-saved events?

image

Same here... I switched to emacs about a year back, though, and agda-mode is fine for me.

@omentic
Copy link
Contributor

omentic commented Sep 17, 2023

Good to know 🙁 I have a sneaking suspicion that it relies on some emacs-specific implementation...

@omentic
Copy link
Contributor

omentic commented Sep 24, 2023

(the function highlighting issue turned out to be a bug in tree-sitter core. still have yet to figure out als)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

5 participants