{"id":13485035,"url":"https://github.com/yaegassy/coc-htmldjango","last_synced_at":"2025-10-24T19:47:56.773Z","repository":{"id":43473575,"uuid":"361168584","full_name":"yaegassy/coc-htmldjango","owner":"yaegassy","description":"django templates (htmldjango) extension for coc.nvim. Provides \"formatter\",  \"linter\", \"completion\" and more...","archived":false,"fork":false,"pushed_at":"2025-10-19T15:32:55.000Z","size":545,"stargazers_count":40,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T20:42:12.617Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","django","jinja2","neovim","python","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/coc-htmldjango","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/yaegassy.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":"2021-04-24T13:26:52.000Z","updated_at":"2025-10-19T15:32:58.000Z","dependencies_parsed_at":"2024-01-13T19:20:45.463Z","dependency_job_id":"2c42ab0a-9cf7-48cc-906a-3db97667736b","html_url":"https://github.com/yaegassy/coc-htmldjango","commit_stats":{"total_commits":401,"total_committers":2,"mean_commits":200.5,"dds":0.01995012468827928,"last_synced_commit":"6f71e6681b91dc8f3a3b1437d099755f39acbcc7"},"previous_names":[],"tags_count":143,"template":false,"template_full_name":null,"purl":"pkg:github/yaegassy/coc-htmldjango","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmldjango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmldjango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmldjango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmldjango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-htmldjango/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-htmldjango/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280857798,"owners_count":26403193,"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-10-24T02:00:06.418Z","response_time":73,"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":["coc","coc-extensions","coc-nvim","django","jinja2","neovim","python","vim"],"created_at":"2024-07-31T17:01:43.435Z","updated_at":"2025-10-24T19:47:56.753Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-htmldjango\n\ndjango templates (htmldjango) extension for [coc.nvim](https://github.com/neoclide/coc.nvim). Provides \"formatter\", \"linter\", \"completion\" and more...\n\n\u003cimg width=\"780\" alt=\"coc-htmldjango-demo\" src=\"https://user-images.githubusercontent.com/188642/122695829-83909380-d27c-11eb-84fa-a19fd46ddca7.gif\"\u003e\n\n## Features\n\n- Format\n  - by [djLint](https://github.com/Riverside-Healthcare/djlint) (reformat HTML templates) | [DEMO](https://github.com/yaegassy/coc-htmldjango/pull/6)\n  - by [DjHTML](https://github.com/rtts/djhtml) (\"Django/Jinja\" template indenter) | [DEMO](https://github.com/yaegassy/coc-htmldjango/pull/2)\n- Lint\n  - by [djLint](https://github.com/Riverside-Healthcare/djlint) (Find common formatting issues) | [DEMO](https://github.com/yaegassy/coc-htmldjango/pull/6)\n- Completion\n  - Completion of snippets data via `completionItemProvider`\n- Hover | [DEMO](https://github.com/yaegassy/coc-htmldjango/pull/1)\n- CodeAction | [DEMO](https://github.com/yaegassy/coc-htmldjango/pull/3)\n- Commands\n- Built-in installer (djLint, DjHTML)\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall coc-htmldjango\n```\n\n**vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-htmldjango', {'do': 'yarn install --frozen-lockfile'}\n```\n\n**Recommended coc-extensions to install together**\n\n- [coc-html](https://github.com/neoclide/coc-html)\n\n## Tool (linter \u0026 formatter) detection\n\n**Detection order**:\n\n- `htmldjango.djlint.commandPath` and `htmldjango.djhtml.commandPath` settings\n- current python environment (e.g. `djlint` and `djhtml` in \"venv\")\n- builtin `djlint` and `djhtml` (Installation commands are also provided)\n\n## Configuration options for coc-htmldjango\n\n- `htmldjango.enable`: Enable coc-htmldjango extension, default: `true`\n- `htmldjango.completion.enable`: Enable snippets completion, default: `true`\n- `htmldjango.completion.exclude`: Exclude specific key in snippet completion, default: `[\"autoescape_paste\", \"comment_paste\", \"comment_selection\", \"for_paste\", \"forempty_paste\", \"if_paste\", \"ifelse_paste\", \"spaceless_paste\", \"verbatim_paste\", \"with_selection\", \"with_paste\", \"trans_paste\", \"blocktrans_paste\", \"blocktrans_with_paste\", \"translate_paste\", \"blocktranslate_paste\", \"blocktranslate_with_paste\"]`\n- `htmldjango.builtin.pythonPath`: Python 3.x path (Absolute path) to be used for built-in install, default: `\"\"`\n- `htmldjango.formatting.provider`: Provider for formatting. Possible options include 'djlint', 'djhtml' and 'none', default: `\"djlint\"`\n- `htmldjango.djlint.commandPath`: The custom path to the djlint (Absolute path), default: `\"\"`\n- `htmldjango.djlint.enableLint`: Enable djLint lint (diagnostics), default: `true`\n- `htmldjango.djlint.lintOnOpen`: Lint file on opening, default: `true`\n- `htmldjango.djlint.lintOnChange`: Lint file on change, default: `true`\n- `htmldjango.djlint.lintOnSave`: Lint file on save, default: `true`\n- `htmldjango.djlint.include`: Codes to include (`--include`), ex: \"H014,H017\", default: `\"\"`\n- `htmldjango.djlint.ignore`: Codes to ignore (`--ignore`), ex: \"W013,W014\", default: `\"\"`\n- `htmldjango.djlint.ignoreCase`: Do not fix case on known html tags (`--ignore-case`), default: `false`\n- `htmldjango.djlint.ignoreBlocks`: Comma list of template blocks to not indent (`--ignore-blocks`), default: `\"\"`\n- `htmldjango.djlint.indent`: Indent spacing (`--indent`), default: `4`\n- `htmldjango.djlint.profile`: Enable defaults by template language. ops: html, django, jinja, nunjucks, handlebars, golang and angular, default: `[\"django\"]`\n- `htmldjango.djlint.useGitIgnore`: Use .gitignore file to extend excludes (`--use-gitignore`), default: `false`\n- `htmldjango.djlint.preserveLeadingSpace`: Attempt to preserve leading space on text (`--preserve-leading-space`), default: `false`\n- `htmldjango.djlint.preserveBlankLines`: Attempt to preserve blank lines (`--preserve-blank-lines`), default: `false`\n- `htmldjango.djlint.formatCss`: Also format contents of style tags (`--format-css`), default: `false`\n- `htmldjango.djlint.formatJs`: Also format contents of script tags (`--format-js`), default: `false`\n- `htmldjango.djlint.addLinterArgs`: Additional arguments passed to djlint linter, example: `[\"--max-line-length\", \"250\", \"--max-attribute-length\", \"80\"]`, default: `[]`\n- `htmldjango.djlint.addFormatterArgs`: Additional arguments passed to djlint formatter, example: `[\"--max-line-length\", \"250\", \"--max-attribute-length\", \"80\"]`, default: `[]`\n- `htmldjango.djhtml.commandPath`: The custom path to the djhtml (Absolute path), default: `\"\"`\n- `htmldjango.djhtml.tabWidth`: Set tabwidth (--tabwidth), default: `4`\n\n## Commands\n\n- `htmldjango.showOutput`: Show htmldjango output channel\n- `htmldjango.builtin.installTools`: Install htmldjango related tools\n- `htmldjango.djlint.format`: Run djLint format\n- `htmldjango.djhtml.format`: Run DjHTML format\n- `htmldjango.showReferences`: Show  Variables Block (`{{ ... }}`) or TemplateTags Block (`{% ... %}`) location information for the current file\n\n## Code Actions\n\n**Example key mapping (Code Action related)**:\n\n```vim\nnmap \u003csilent\u003e ga \u003cPlug\u003e(coc-codeaction-line)\n```\n\n**Actions**:\n\n- If `htmldjango.formatting.provider` is `djlint` or If `htmldjango.djlint.enableLint` is `true`\n  - `Add \u003c!-- djlint:off --\u003e for this line`\n  - `Add \u003c!-- djlint:on --\u003e for this line`\n- If `htmldjango.formatting.provider` is `djhtml`\n  - `Add {# fmt:off #} for this line`\n  - `Add {# fmt:on #} for this line`\n\n## Bult-in install (djLint, DjHTML)\n\ncoc-htmldjango allows you to create an extension-only \"venv\" and install \"djlint\" and \"djhtml\".\n\n```vim\n:CocCommand htmldjango.builtin.installTools\n```\n\n## Thanks\n\n- [Riverside-Healthcare/djlint](https://github.com/Riverside-Healthcare/djlint)\n- [rtts/djhtml](https://github.com/rtts/djhtml)\n- [vscode-django/vscode-django](https://github.com/vscode-django/vscode-django)\n\n## License\n\nMIT\n\n---\n\n\u003e This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-htmldjango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-htmldjango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-htmldjango/lists"}