diff options
| author | ja <[email protected]> | 2025-12-29 16:53:41 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-29 15:53:41 -0600 |
| commit | 5efb1c7b2deb645201d89eef166e7e5a58015ad4 (patch) | |
| tree | a136b1579e10be74260f8bd7f6771ef1f686644e /packages | |
| parent | fd973d242e3045a8dbc76c07c796fe175a721ea0 (diff) | |
| download | opencode-5efb1c7b2deb645201d89eef166e7e5a58015ad4.tar.gz opencode-5efb1c7b2deb645201d89eef166e7e5a58015ad4.zip | |
feat(highlight): add nix syntax highlighting (#6386)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/parsers-config.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/opencode/parsers-config.ts b/packages/opencode/parsers-config.ts index bc02780c6..423ffb74a 100644 --- a/packages/opencode/parsers-config.ts +++ b/packages/opencode/parsers-config.ts @@ -235,5 +235,19 @@ export default { ], }, }, + { + filetype: "nix", + // TODO: Replace with official tree-sitter-nix WASM when published + // See: https://github.com/nix-community/tree-sitter-nix/issues/66 + wasm: "https://github.com/ast-grep/ast-grep.github.io/raw/40b84530640aa83a0d34a20a2b0623d7b8e5ea97/website/public/parsers/tree-sitter-nix.wasm", + queries: { + highlights: [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/nix/highlights.scm", + ], + locals: [ + "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/nix/locals.scm", + ], + }, + }, ], } |
