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.


Cheers,

Bastian


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.16.8+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hx depends on:
ii  libc6      2.41-12
ii  libgcc-s1  15.2.0-4

Versions of packages hx recommends:
ii  g++  4:15.2.0-4
ii  git  1:2.51.0-1

Versions of packages hx suggests:
ii  bash-completion            1:2.16.0-7
pn  blueprint-compiler         <none>
pn  clangd                     <none>
pn  delve                      <none>
pn  dhall                      <none>
pn  elan                       <none>
pn  elvish                     <none>
ii  fish                       4.0.2-1
pn  fortran-language-server    <none>
pn  gopls                      <none>
pn  just                       <none>
pn  lldb                       <none>
pn  ocaml-dune                 <none>
pn  perlnavigator              <none>
pn  python3-pylsp              <none>
pn  qt6-declarative-dev-tools  <none>
pn  r-base-core                <none>
pn  racket                     <none>
pn  ruff                       <none>
pn  rust-analyzer              <none>
pn  swi-prolog-core            <none>
pn  swiftlang                  <none>
pn  texlab                     <none>
pn  txtpbfmt                   <none>

-- no debconf information

Reply via email to