Quoting Bastian Venthur (2025-03-11 09:44:00)
> Package: hx
> Followup-For: Bug #1100003
> X-Debbugs-Cc: vent...@debian.org
> 
> Hi Jonas,
> 
> thanks for your reply.
> 
> > There are multiple concerns here:
> > 
> > # Sources for grammar plugins is not in Debian
> > 
> > Either hundreds of source packages need to be introduced to Debian, or
> > the src:hx package would need to carry hundreds of embedded projects.
> > 
> > I think the best approach is to package the sources for the more
> > popular grammars only, and think the best approach is that those
> > interested in some grammar join the tree-sitter team and file a
> > bugreport against hx when sources are available in Debian.
> 
> Thanks for the explanation, I understand that these tree-sitter plugins
> should be packaged separately so they can be used by other packages such
> as neovim. Does that mean that the few existing tree-sitter packages for
> C, Lua, Markdown, etc. could already be utilized by hx?

There are (as I understand it) no "tree-sitter plugins", but intead
Helix plugins (which are not reusable by other editors, but which
build-depends on libraries often related to tree-sitter project which
might transitively be shared among multiple editors) and language
servers (which in principle are shared among all editors supporting the
Language Server Protocol, LSP).

Helix plugins with all build-dependencies already in Debian are easier
to package but still need some custom setup which has not been fleshed
out yet: When using upstream build routines, the core code for each of
those plugins is fetched from git repos, which is not permitted to do
on Debian build daemons.

> Also, would you be open to make hx depend on a reasonable set of
> treesitter plugins by default?

I think it is more sensible to recommend plugins than depend on them.


> > # 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.


> > # Grammar plugins slows startup of Helix
> > 
> > My main concern with many plugins is not size but speed: As I recall,
> > I experienced a noticable slowdown in startup of Helix when many
> > plugins are loaded.
> 
> Can you verify if that is still the case? I tried both cases: none and
> all tree-siter plugins and did not perceive any performance difference.

No, I have not found time to verify that yet.

Please consider sharing how beefy your system is, and to measure the
it takes to load Helix both with an enpty document and with a large
document, with and without many plugins enabled.


Kind regards,

 - 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

Reply via email to