-
Notifications
You must be signed in to change notification settings - Fork 391
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
Treesitter alongside vimtex #2469
Comments
Thanks! It would be nice if you could explain what |
It does not disable the legacy syntax engine when attaching a treesitter parser (via It's a band-aid that's not really recommended as a practical solution. |
To quote directly from the readme of https://github.com/nvim-treesitter/nvim-treesitter "Setting this to true will run I haven't yet experienced any negative effects but yes it's true it duplicates effort and is a band aid solution. But I prefer that loss in efficiency over loosing either nvim-FeMaco or Vimtex. |
Cool, thanks for the explanations! @aryabhatta-dey if you think we should make an update to the docs; would you care to propose a first version of this update? |
Sure. Should I submit it as a pr with only documentation changes? |
Yes, that would be great :) |
…g to the discussion in lervag#2469
Hey! Just made a pr #2484. Sorry for not getting back to you so long. Please take a look and let me know what you think. |
Thanks! I'll check it out now. I believe this issue can be closed now? (Feel free to reopen if I missed something.) |
Is there anyway to remove the message that vimtex puts out about treesitter syntax? |
Yes: use |
This might be a weird thing to ask, but since I use treesitter with:
I hoped there was a way to get rid of the message and not the support. |
Ah, that's right. I agree that in this case there is no need for the warning. I've tried to update the check so that it only outputs the warning if VimTeX syntax is not active. Can you please update and check if it works? |
It would be nice if you also checked if the warning is still there if you remove |
The warning is all gone! Thank you so much! I want to say I love this plugin so much. Is there any way we can sponsor you? |
Glad to hear it, and thanks for the kind words! I don't mind donations, of course - there's a paypal badge on the README. <3 |
But I will also be glad if you instead choose to "pass it on" by donating to some cause you believe in, be it charity or other FOSS projects. :) |
Not really an issue rather a suggestion.
Currently, Vimtex's documentation suggests not to install markdown or latex Treesitter parsers if one wants to use Vimtex for recognizing mathzones. But this means one cannot use plugins like https://github.com/AckslD/nvim-FeMaco.lua.
So to get around the problem one can do
I have tested this config out with small markdown files and as of the moment I can use both nvim-FeMaco and Vimtex's mathzones in the same file.
The text was updated successfully, but these errors were encountered: