nabla.nvim icon indicating copy to clipboard operation
nabla.nvim copied to clipboard

Support equation enviroment

Open ihasdapie opened this issue 4 years ago • 2 comments

For most of my notes I use the equation environment for numbered equations, etc. Would it be possible for nabla.nvim to support previewing math in an equation? I understand that parsing this could be messy so I'm thinking a good alternative would be to provide a method to preview a visual-selected region of text -- and then the user can map/bind that as they see fit, perhaps with vimtex textobjects or treesitter, etc.

Thanks for the great plugin! If there is a way I can help with this let me know.

ihasdapie avatar Mar 17 '22 19:03 ihasdapie

I believe the visual selection would be the best and fairly easy to implement. If you have time, I would actually welcome the PR to do this. You can take inspiration from this which was done by another contributor and the associated PR where I explain how to add code in nabla.nvim.

Feel free to ask any questions here.

jbyuki avatar Mar 31 '22 10:03 jbyuki

Sounds good, I'll take a look into it when I get the chance

ihasdapie avatar Mar 31 '22 15:03 ihasdapie

Fixed by #44

jbyuki avatar Oct 09 '22 10:10 jbyuki