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. Requires Python 3.8 for now, will probably relax in future.
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314fb95bb4975920ffafc9ff6e49fa8fbfba15a324875ae40d3ac9c61797187a |
|
MD5 | 65f08b83aa23f9db4f7eec5aa5a3212b |
|
BLAKE2b-256 | 952f3ae4d83a7a8f3147e0cf5a99305ccd124c0258928366416885dbfe47a858 |
Hashes for nginx_language_server-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6870481c9244a22bc0dfa9e52f26659451c23c568b0fbec89b97bdaa423d009a |
|
MD5 | 9e7c1083d9220ba553d42c4e46f1b050 |
|
BLAKE2b-256 | c43a867cd5132701b31312d3c6a52c3179cd03e790f6cf504dfb81993142c588 |