@yaegassy/coc-nginx
yaegassynginx-language-server extension for coc.nvim
Published Package Summary
coc-nginx
nginx-language-server extension for coc.nvim
Features
- Completion
- Hover
- Format by nginxfmt
- Built-in installer
Install
CocInstall:
:CocInstall @yaegassy/coc-nginx
scoped packages
vim-plug:
Plug 'yaegassy/coc-nginx', {'do': 'yarn install --frozen-lockfile'}
Detect: nginx-language-server
nginx.server.commandPath- current environment PATH (e.g. nginx-language-server in venv, or global)
- builtin nginx-language-server (Installation commands are also provided)
Built-in install
coc-nginx allows you to create an extension-only "venv" and install "nginx-language-server".
The first time you use coc-nginx, if nginx-language-server is not detected, you will be prompted to do a built-in installation.
You can also run the installation command manually.
:CocCommand nginx.installLanguageServer
Known issue I have identified
There seems to be an error when saving the file.
Repro:
:CocCommand workspace.showOutput -> Choose by number: -> "Enter" the number of the nginx-language-server.
Thanks
License
MIT
This extension is built with create-coc-extension
- nginx-language-server extension for coc.nvim
- onLanguage:nginx
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for @yaegassy/coc-nginx@0.5.1.
| Command (:CocCommand) | Description |
|---|---|
| nginx.installLanguageServer | Install/Upgrade nginx-language-server and more tools (builtin) |
| nginx.format | Run nginxfmt |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable coc-nginx extension"
}Raw JSON Schema
{
"type": "number",
"default": 4,
"description": "Specify number of spaces for indentation"
}Raw JSON Schema
{
"type": "string",
"default": "",
"description": "Python 3.x path (Absolute path) to be used for built-in install"
}Raw JSON Schema
{
"type": "string",
"default": "",
"description": "The custom path to the nginx-language-server (Absolute path)."
}Raw JSON Schema
{
"type": "string",
"default": "",
"description": "The custom path to the nginxfmt (Absolute path)."
}