-
-
Notifications
You must be signed in to change notification settings - Fork 45
Add more languages #4
Comments
Hey! I am willing to add more languages to the list :) |
I would like support for dart |
Hey @ovidius72! I just added some basic queries for typescript. |
@SmiteshP Thank you. |
That would be great!! |
Hey @SmiteshP , do those changes also apply for |
Not right now, I actually don't know a lot about typescript and typescript-react 😅 |
Hey @Chaitanyabsprip! After looking into it, unfortunately I don't think it will be possible to support dart in this plugin. Because unlike other languages, the treesitter for dart creates function signature and function body as sibling nodes. So there will be no single node that can be captured as |
I don't see why that would be needed to be different for a language like dart, just query the body and ignore the signature? I have no experience writing scheme but this sounds logical to me. |
You can look at the contributions.md file in the repo. I have roughly explained how the plugins algorithm works and also linked the tree-sitter website that explains the query syntax.
Once you understand how nvim-gps is extracting information from treesitter, hopefully you will understand why this is impossible to do for dart. When the cursor will reside inside the function body we will not encounter the function signature on the way to the root node. And the information about the function name is contained in the function signature. |
Hello @ovidius72 and @danielebra, I recently added support for jsx and tsx files too! As far as I understand they are pretty similar to javascript and typescript respectively so the same treesitter queries should work with them too. |
@SmiteshP Thank you. I'm sorry I didn't have the time to check it out. typescript file. Inside an arrow function. the result of In typescriptreact it would be great to detect also JSX tags. Thanks. |
Here is the lualine section where i show up the gps module info.
|
Hey @ovidius72, could you open a new issue regarding this and share some code snippets so that I can reproduce this error. |
I added support for YANG! 🎉 #24 Although I suspect I am the only person in the world who uses neovim + nvim-gps and codes in YANG... |
Support for Vue would be highly appreciated. |
Hey, I just came across the FlutterOutline Command in the flutter-tools by akinsho. you could look into that how he's implemented that to add support for dart in your plugin |
@SmiteshP Thank you for this awesome package! Is it possible to add support for Julia? I did take a look at how to add a language, but it is not that intuitive. Thanks :) |
Thanks for this package, but would it be possible to add svelte? It's html with some minor extra syntax |
Hey @Chaitanyabsprip @mo8it and @Suyashtnt ! |
Is there a way to integrate this into something like winbar.nvim? (Plugin that uses nvim-gps for showing a vscode-like winbar) |
Yep! If you are using feline.nvim just add the component to feline's winbar setup function. Or you can also use the native neovim way. |
I'm talking about the plugin called winbar.nvim, is there a way to use this in a way that resembles it's look |
Very nice plugin. Are you planning to add more languages?.
I'd like to see typescript ad typescript react (.tsx)
The text was updated successfully, but these errors were encountered: