{"id":13479347,"url":"https://github.com/yaegassy/coc-nginx","last_synced_at":"2025-04-19T18:34:06.238Z","repository":{"id":46668994,"uuid":"359643149","full_name":"yaegassy/coc-nginx","owner":"yaegassy","description":"nginx-language-server extension for coc.nvim","archived":false,"fork":false,"pushed_at":"2023-05-16T06:54:03.000Z","size":94,"stargazers_count":30,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T15:04:09.015Z","etag":null,"topics":["coc","coc-extensions","coc-nvim","neovim","nginx","vim"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@yaegassy/coc-nginx","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}},"created_at":"2021-04-20T01:09:15.000Z","updated_at":"2024-12-19T15:49:57.000Z","dependencies_parsed_at":"2024-01-16T06:22:08.139Z","dependency_job_id":"92b61b1c-90e8-42bf-a76d-016fdfcc97cf","html_url":"https://github.com/yaegassy/coc-nginx","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaegassy%2Fcoc-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaegassy","download_url":"https://codeload.github.com/yaegassy/coc-nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249239241,"owners_count":21235822,"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":["coc","coc-extensions","coc-nvim","neovim","nginx","vim"],"created_at":"2024-07-31T16:02:14.004Z","updated_at":"2025-04-16T12:30:42.521Z","avatar_url":"https://github.com/yaegassy.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Language Support"],"sub_categories":[],"readme":"# coc-nginx\n\n[nginx-language-server](https://github.com/pappasam/nginx-language-server) extension for [coc.nvim](https://github.com/neoclide/coc.nvim)\n\n\u003cimg width=\"780\" alt=\"coc-nginx-demo\" src=\"https://user-images.githubusercontent.com/188642/115322781-c329f900-a1c1-11eb-920e-c49f3bb96af1.gif\"\u003e\n\n## Features\n\n- Completion\n- Hover\n- Format by [nginxfmt](https://pypi.org/project/nginxfmt/)\n- Built-in installer\n\n## Install\n\n**CocInstall**:\n\n```vim\n:CocInstall @yaegassy/coc-nginx\n```\n\n\u003e scoped packages\n\n**vim-plug**:\n\n```vim\nPlug 'yaegassy/coc-nginx', {'do': 'yarn install --frozen-lockfile'}\n```\n\n## Detect: nginx-language-server\n\n1. `nginx.server.commandPath`\n2. current environment PATH (e.g. nginx-language-server in venv, or global)\n3. builtin nginx-language-server (Installation commands are also provided)\n\n## Bult-in install\n\ncoc-nginx allows you to create an extension-only \"venv\" and install \"nginx-language-server\".\n\nThe first time you use coc-nginx, if nginx-language-server is not detected, you will be prompted to do a built-in installation.\n\nYou can also run the installation command manually.\n\n```vim\n:CocCommand nginx.installLanguageServer\n```\n\n## Configuration options\n\n- `nginx.enable`: Enable coc-nginx extension, default: `true`\n- `nginx.server.commandPath`: The custom path to the nginx-language-server (Absolute path), default: `\"\"`\n- `nginx.builtin.pythonPath`: Python 3.x path (Absolute path) to be used for built-in install, default: `\"\"`\n- `nginx.nginxfmt.commandPath`: The custom path to the nginxfmt (Absolute path), default: `\"\"`\n- `nginx.nginxfmt.indent`: Specify number of spaces for indentation, default: `4`\n\n## Commands\n\n- `nginx.installLanguageServer`: Install/Upgrade nginx-language-server and more tools (builtin)\n  - It will be installed in this path:\n    - Mac/Linux: `~/.config/coc/extensions/@yaegassy/coc-nginx-data/nginx-language-server/venv/bin/nginx-language-server`\n    - Windows: `~/AppData/Local/coc/extensions/@yaegassy/coc-nginx-data/nginx-language-server/venv/Scripts/nginx-language-server.exe`\n- `nginx.format`: Run nginxfmt\n\n## Known issue I have identified\n\nThere seems to be an error when saving the file.\n\n**Repro**:\n\n`:CocCommand workspace.showOutput` -\u003e `Choose by number:` -\u003e \"Enter\" the number of the `nginx-language-server`.\n\n## Thanks\n\n- [pappasam/nginx-language-server](https://github.com/pappasam/nginx-language-server)\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-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaegassy%2Fcoc-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaegassy%2Fcoc-nginx/lists"}