-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add support for nim-lang #3117
Comments
[[language]] [[grammar]] |
Since one of the goals of the author of the grammar is to write the queries for nvim-treesitter, I'm just going to watch closely until then. The queries written by the author of the grammar will probably better than my attempt. So we should crib those, then modify as required. watch for progress:
That is of course in lieu of somebody else writing the queries in the meantime, which would be awesome. |
I just tried to add the nim parser to nvim-treesitter, but it SEGFAULTED during my editing session which in probably a no-go for editor integration. Also is probably requires a bit more work to support most language construct.. |
The SEGFAULT has been fixed. WIP for highlighting here nvim-treesitter/nvim-treesitter#3320 , Please note that the parser is not intended for usage yet, but it will probably be some day. |
wondering when nim support will be ready for helix? |
Same here, but it looks like the pr for nvim-treesitter was closed a while back |
Any news about this? |
https://github.com/aMOPel/tree-sitter-nim still claims to be "not ready for use" but is also "welcome to contributions". Maybe interested people could have a look at the parser to see what is still missing to make it ready to use. Also highlights at nvim-treesitter/nvim-treesitter#3320 are incomplete, but maybe a good start for alpha testers to see what's missing in the queries and the parser. |
Update on this: https://github.com/alaviss/tree-sitter-nim Is now in a very usable state and does far better than my parser. Feel free to adapt them to helix. |
To keep this issue up to date, note that initial language support was added in #6123. Support could be improved, as aMOPel says, along the lines of this Neovim PR from last month. |
This issue can be closed. There are some issues with the language server, but they're on the Nim side of things. I'll be updating the queries to be based on alaviss's (more complete) grammar shortly. |
Nim is a statically typed compiled systems programming language.
It combines successful concepts from mature languages like Python, Ada and Modula.
lsp: https://github.com/nim-lang/langserver
treesitter: https://github.com/aMOPel/tree-sitter-nim
The text was updated successfully, but these errors were encountered: