Skip to content

omarchy-nvim: treesitter query error due to missing compiled vim parser #5300

@ki11e6

Description

@ki11e6

Problem

Opening Neovim shows a treesitter query error on startup, which blocks normal usage (:q doesn't work because noice.nvim captures the error into a floating window):

/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:373: Query error at 113:4. Invalid node type "tab":
  "tab"
   ^

Cause

The omarchy-nvim package (v2026.3.27) ships nvim-treesitter at commit 8cdffc6d which added "tab" as a vim command node type in runtime/queries/vim/highlights.scm (line 113). However, the data/site/ directory in the package is empty — no compiled treesitter parsers are included.

This means omarchy-nvim-setup copies an empty site/ directory to ~/.local/share/nvim/site/, so Neovim falls back to the vim parser bundled with the neovim Arch package (0.11.7). That system parser is older and doesn't have "tab" in its grammar, causing the query validation error.

Details

  • neovim package: 0.11.7-1
  • omarchy-nvim package: 2026.3.27-1
  • Packaged nvim-treesitter expects vim parser revision 3092fcd99eb87bbd0fc434aa03650ba58bd5b43b
  • System vim parser revision: 3dd4747082d1b717b8978211c06ef7b6cd16125b
  • /usr/share/omarchy-nvim/data/site/ is empty (no compiled parsers shipped)

Workaround

Running :TSInstall! vim inside Neovim installs the correct parser version and resolves the error.

Suggested Fix

Either ship the compiled treesitter parsers in omarchy-nvim's data/site/ directory, or add a TSUpdate / TSInstall! vim step to the setup/migration process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions