Quoting Bastian Venthur (2025-09-25 09:45:48) > Package: hx > Version: 25.07.1+~0.3.0+20250717-1 > Followup-For: Bug #1100003 > X-Debbugs-Cc: [email protected] > > > > > # Grammar plugins are either system-shared or personal > > > > > > > > If I recall correctly (it is some time ago I looked into that), > > > > grammar plugins can be stored below /usr - but if a single plugin > > > > exists below ~/.config/helix/runtime/grammars then the system-shared > > > > plugins are all ignored. > > > > > > > > Ideally we should convince upstream to improve this, but if not then I > > > > am willing to carry a reasonably small patch for Debian. Help making > > > > such patch is welcome. > > > > > > This sounds not right, maybe this has been fixed upstream already. If > > > not, this should probably be fixed. > > > > Please feel free to test if possible to use a combination of > > system-shared and personally built plugins, and if not initiate a > > conversation upstream about introducing such support. > > I've tried that and can confirm that hx **is** able to use system-shared and > personal grammar plugins. > > I've copied some grammars in /usr/lib/hx/runtime/grammars, and some in my > ~/.config/helix/runtime/grammars: > > $ ls /usr/lib/hx/runtime/grammars/ > markdoc.so markdown_inline.so markdown.so > > $ ls ~/.config/helix/runtime/grammars/ > python.so > > Then I tried editing a markdown and a python file, both had syntax > highlighting > enabled as expected.
That's great. Now I wonder if perhaps it worked all along, and what I (mis)remember from past experimentation was not bare object files but system-shared and user-private config.toml and/or languages.toml file. In any case, good that it will work to ship system-shared grammar objects. Now is just left the challenge of orchestrating having them built without network access, including having all needed dependencies packaged. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ * Sponsorship: https://ko-fi.com/drjones [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature

