Skip to content

[BUG] neorg failing with treesitter error #4157

@skalle

Description

@skalle

Plugin

neorg

Nixpkgs Release

unstable

Home Manager Release

unstable

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

After a flake update nvim now reports the following error on startup:

Error detected while processing /Users/ola.karlsson/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...ua/neorg/modules/core/integrations/treesitter/module.lua:63: Unable to load nvim-treesitter.ts_utils :(
stack traceback:
  [C]: in function 'assert'
  ...ua/neorg/modules/core/integrations/treesitter/module.lua:63: in function 'load'
  .../myNeovimPackages/start/neorg/lua/neorg/core/modules.lua:447: in function 'load_module'
  .../myNeovimPackages/start/neorg/lua/neorg/core/modules.lua:379: in function 'load_module'
  ...dir/pack/myNeovimPackages/start/neorg/lua/neorg/init.lua:100: in function 'org_file_entered'
  ...dir/pack/myNeovimPackages/start/neorg/lua/neorg/init.lua:45: in function 'setup'
  /Users/ola.karlsson/.config/nvim/init.lua:82: in main chunk

This seem to have messed with the Neorg startup as the commands :Neorg * is not there any longer.
Loading a neorg file still gives /some/ style but many are messed up.

Treesitter health shows norg and norg_meta:


==============================================================================
nvim-treesitter:                                                            ✅

Requirements ~
- ✅ OK Neovim was compiled with tree-sitter runtime ABI version 15 (required >=13).
- ✅ OK tree-sitter-cli 0.25.10 (/Users/ola.karlsson/.nix-profile/bin/tree-sitter)
- ✅ OK tar 3.5.3 (/usr/bin/tar)
- ✅ OK curl 8.7.1 (/usr/bin/curl)
  curl 8.7.1 (x86_64-apple-darwin25.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.67.1
  Release-Date: 2024-03-27
  Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
  Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets

OS Info ~
- sysname: Darwin
- machine: arm64
- version: Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041
- release: 25.2.0

Install directory for parsers and queries ~
- /Users/ola.karlsson/.local/share/nvim/site/
- ✅ OK is writable.
- ✅ OK is in runtimepath.

Installed languages     H L F I J ~
- norg
- norg_meta

  Legend: H[ighlights], L[ocals], F[olds], I[ndents], In[J]ections ~

Minimal, Reproducible Example (MRE)

programs.nixvim = {
 enble = true;
 plugins = {
   treesitter.enable = true;
   neorg.enable = true;
 }; 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions