A language server for nginx.conf
Project description
Nginx Language Server
A Language Server for nginx.conf
.
Still under constructions, expect big changes and breaking changes for a while.
Capabilities
nginx-language-server currently partially supports the following Language Server capabilities with more to be added in the future.
Language Features
Installation
From your command line (bash / zsh), run:
pip install -U nginx-language-server
-U
ensures that you're pulling the latest version from pypi.
Alternatively, consider using pipx to keep nginx-language-server isolated from your other Python dependencies.
Editor Setup
The following instructions show how to use nginx-language-server with your development tooling. The instructions assume you have already installed nginx-language-server.
Vim / Neovim
With coc.nvim, put the following in coc-settings.json
:
"languageserver": {
"nginx-language-server": {
"command": "nginx-language-server",
"filetypes": ["nginx"],
"rootPatterns": ["nginx.conf", ".git"]
}
},
Note: this list is non-exhaustive. If you know of a great choice not included in this list, please submit a PR!
Inspiration
The useful language data for nginx is ported from vscode-nginx-conf-hint. I would have used this library directly, but alas! It's written only for VSCode and I use Neovim.
Written by
Samuel Roeca samuel.roeca@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nginx-language-server-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf616c983f5219a8466a65ac236d3409b12e049c259a6cfc75d62cddb05813ea |
|
MD5 | d9c3b8af6110e9aa01d3494cb77a89f8 |
|
BLAKE2b-256 | 7421632955f254b207472d0fb35330709f6c858b14e7781c2b5abbc926075851 |
Hashes for nginx_language_server-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a2ee1caa641dbfe2cfa2ee6fd803d16d425e3033a4921e85a93a9bdc9aa800 |
|
MD5 | 20b0270d76456fb3f03c92fe132635de |
|
BLAKE2b-256 | 4a2df800de455f0a48af08c48f00812f102f73ab396df8a0e3b90ace0df514c3 |