{"id":31041940,"url":"https://github.com/acarapetis/nvim-treesitter-jjconfig","last_synced_at":"2025-09-14T10:53:47.636Z","repository":{"id":308994442,"uuid":"1034813508","full_name":"acarapetis/nvim-treesitter-jjconfig","owner":"acarapetis","description":"treesitter injections for jj config files in neovim","archived":false,"fork":false,"pushed_at":"2025-08-25T22:05:37.000Z","size":198,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T00:11:31.585Z","etag":null,"topics":["jj","jujutsu","neovim","neovim-plugin","nvim-treesitter","treesitter"],"latest_commit_sha":null,"homepage":"","language":"Tree-sitter Query","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acarapetis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-09T03:25:38.000Z","updated_at":"2025-08-25T22:05:41.000Z","dependencies_parsed_at":"2025-08-09T11:30:54.080Z","dependency_job_id":null,"html_url":"https://github.com/acarapetis/nvim-treesitter-jjconfig","commit_stats":null,"previous_names":["acarapetis/nvim-treesitter-jjconfig"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/acarapetis/nvim-treesitter-jjconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acarapetis%2Fnvim-treesitter-jjconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acarapetis%2Fnvim-treesitter-jjconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acarapetis%2Fnvim-treesitter-jjconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acarapetis%2Fnvim-treesitter-jjconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acarapetis","download_url":"https://codeload.github.com/acarapetis/nvim-treesitter-jjconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acarapetis%2Fnvim-treesitter-jjconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275094380,"owners_count":25404446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jj","jujutsu","neovim","neovim-plugin","nvim-treesitter","treesitter"],"created_at":"2025-09-14T10:53:46.465Z","updated_at":"2025-09-14T10:53:47.617Z","avatar_url":"https://github.com/acarapetis.png","language":"Tree-sitter Query","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvim-treesitter-jjconfig\n\nThis is a neovim plugin providing filetype detection and a treesitter parser for revset\nexpressions and templates inside [jj](https://jj-vcs.github.io) configuration files.\n\nIt gives you syntax highlighting and autoindentation for:\n\n- toml strings containing jj revset expressions:\n    - in `[revsets]/[revset-aliases]` tables\n    - in command aliases when immediately following \"--revisions\", \"--from\", \"--to\",\n      etc. (I've left out the short forms for now because they seem likely to trigger\n      false positives.)\n- toml strings containing jj templates:\n    - in `[templates]/[template-aliases]` tables\n    - in command aliases when immediately following \"--template\" or \"-T\".\n\n![screenshot](./screenshot.png)\n\nFor now it applies only when the first line of the file is a jj config-schema\ndeclaration, e.g.\n\n```toml\n\"$schema\" = \"https://jj-vcs.github.io/jj/latest/config-schema.json\"\n```\n\n(See ftdetect/jjconfig.lua for the exact pattern if you're using something different and\nhaving trouble.)\n\n## Dependencies\n\n- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)\n\n## Installation\n\nInstall this neovim plugin in whatever manner you prefer, and somewhere in your setup\n_after_ setting up `nvim-treesitter`, call\n`require(\"nvim-treesitter-jjconfig\").config()`. You can optionally provide an options\ntable with any of the following options:\n\n| Option           | Type | Effect        |\n| ---------------- | ---- |----------------------------------------------------------- |\n| ensure_installed | bool | automatically install the jj treesitter parsers at startup |\n| sync_install     | bool | do the automatic installation synchronously                |\n\nExample [lazy.nvim](https://lazy.folke.io/) config:\n\n```lua\nreturn {\n    {\n        \"nvim-treesitter/nvim-treesitter\",\n        lazy = false,\n        build = \":TSUpdate\",\n        config = function()\n            require(\"nvim-treesitter.configs\").setup({\n                -- ...\n            })\n        end\n    },\n    {\n        \"acarapetis/nvim-treesitter-jjconfig\",\n        dependencies = { \"nvim-treesitter/nvim-treesitter\" },\n        lazy = false,\n        opts = { ensure_installed = true },\n    }\n}\n```\n\n## Thanks\n\nThis would not be possible without the\n[jjtemplate](https://github.com/bryceberger/tree-sitter-jjtemplate) and\n[jjrevset](https://github.com/bryceberger/tree-sitter-jjrevset) parsers by bryceberger.\n\nThe syntax highlighting queries for jjtemplate and jjrevset included in this repo\nwere [originally written by bryceberger for\nhelix](https://github.com/helix-editor/helix/pull/13926/files).\n\nThanks to bryceberger and algmyr for a fruitful conversation on the JJ discord.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facarapetis%2Fnvim-treesitter-jjconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facarapetis%2Fnvim-treesitter-jjconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facarapetis%2Fnvim-treesitter-jjconfig/lists"}