{"id":18562454,"url":"https://github.com/replit/codemirror-lang-nix","last_synced_at":"2025-04-10T03:31:51.252Z","repository":{"id":38188363,"uuid":"431358295","full_name":"replit/codemirror-lang-nix","owner":"replit","description":"A Nix language mode for CodeMirror 6","archived":false,"fork":false,"pushed_at":"2023-10-07T08:46:23.000Z","size":505,"stargazers_count":14,"open_issues_count":3,"forks_count":6,"subscribers_count":34,"default_branch":"main","last_synced_at":"2025-03-24T15:47:35.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://replit.com/@util/codemirror-lang-nix","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.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}},"created_at":"2021-11-24T05:26:20.000Z","updated_at":"2025-01-21T03:09:40.000Z","dependencies_parsed_at":"2024-06-18T21:25:13.987Z","dependency_job_id":"49df2c4f-1d8c-4421-b05c-73a6f567f3a6","html_url":"https://github.com/replit/codemirror-lang-nix","commit_stats":{"total_commits":30,"total_committers":7,"mean_commits":4.285714285714286,"dds":0.5333333333333333,"last_synced_commit":"63d13a68d2a64c1c219b3283a574e84b9ad92a61"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-lang-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/codemirror-lang-nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713302,"owners_count":20983681,"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","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":[],"created_at":"2024-11-06T22:09:47.490Z","updated_at":"2025-04-10T03:31:46.235Z","avatar_url":"https://github.com/replit.png","language":"TypeScript","readme":"# CodeMirror Nix Mode\n\n[![Run on Repl.it](https://replit.com/badge/github/replit/codemirror-lang-nix)](https://replit.com/@util/codemirror-lang-nix)\n\u003cspan class=\"badge-npmversion\"\u003e\u003ca href=\"https://npmjs.org/package/@replit/codemirror-lang-nix\" title=\"View this project on NPM\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@replit/codemirror-lang-nix.svg\" alt=\"NPM version\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\nA codemirror extension that adds Nix syntax highlighting and language features.\n\n![example of Nix syntax highlighting](public/nix.png)\n\n### Usage\n\n```typescript\nimport { EditorState } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\nimport { nix } from \"@replit/codemirror-lang-nix\";\nimport { basicSetup } from 'codemirror';\n\nnew EditorView({\n  state: EditorState.create({\n    doc: `{ pkgs ? import \u003cnixpkgs\u003e {} }: pkgs.mkShell { buildInputs = [ pkgs.nodejs ]; }`,\n    extensions: [basicSetup, nix()],\n  }),\n  parent: document.querySelector('#editor'),\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-lang-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Fcodemirror-lang-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-lang-nix/lists"}