y-ack / e

2 stars 1 forks source link

dynamically load treesitter backends #17

Open ilovecherries opened 3 years ago

ilovecherries commented 3 years ago

isn't necessary but i think it would be nice if there was some way to dynamically load backends instead of having all of them statically linked into the editor

y-ack commented 3 years ago

ideally language backends themselves should be configurable by lua, like modes are in emacs, but hmm, i guess it gets weird when ts is native. maybe ts backends are loaded through lua and e accesses them as lua objects?

ilovecherries commented 3 years ago

Lua tree sitter backend either just doesn't compile correctly or there's something wrong with how I'm loading things https://github.com/y-ack/e/blob/7944f30f102d00326b5a379d941017021ae4625c/src/editor.rs#L164