Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
PyPI

nginx-language-server 0.9.0

pip install nginx-language-server

Latest version

Released:

A language server for nginx.conf

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for pappasam from gravatar.compappasam

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: GNU General Public License v3 (GPLv3) (GPL-3.0-only)
  • Author:Sam Roeca
  • Tags nginx, completion, refactoring, vim, neovim, lsp, language-server-protocol
  • Requires: Python <3.14, >=3.9

Project description

Nginx Language Server

image-versionimage-licenseimage-python-versions

ALanguage Server fornginx.conf.

Still under construction, expect big / potentially 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:

pipinstall-Unginx-language-server

-U ensures that you're pulling the latest version from pypi.

Alternatively, consider usingpipx 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

Withcoc.nvim, put the following incoc-settings.json:

{"languageserver":{"nginx-language-server":{"command":"nginx-language-server","filetypes":["nginx"],"rootPatterns":["nginx.conf",".git"]}}}

In your vimrc, I recommend putting in the following lines to ensure variables complete / hover correctly:

augroup custom_nginx  autocmd!  autocmdFileType nginxsetlocaliskeyword+=$  autocmdFileType nginxletb:coc_additional_keywords= ['$']augroupend

Alternatively, you can usecoc-nginx.

letg:coc_global_extensions= ['@yaegassy/coc-nginx']

Note: this list is non-exhaustive. If you know of a great choice not included in this list, please submit a PR!

Command line

nginx-language-server can be run directly from the command line.

$nginx-language-server--helpusage: nginx-language-server [-h] [--version] [--tcp] [--host HOST]                             [--port PORT] [--log-file LOG_FILE] [-v]Nginx language server: an LSP server for nginx.conf.optional arguments:  -h, --help           show this help message and exit  --version            display version information and exit  --tcp                use TCP server instead of stdio  --host HOST          host for TCP server (default 127.0.0.1)  --port PORT          port for TCP server (default 2088)  --log-file LOG_FILE  redirect logs to the given file instead of writing to                       stderr  -v, --verbose        increase verbosity of log outputExamples:    Run from stdio: nginx-language-server

Inspiration

The useful language data for nginx is ported fromvscode-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 Roecasamuel.roeca@gmail.com

Project details

Verified details

These details have beenverified by PyPI
Maintainers
Avatar for pappasam from gravatar.compappasam

Unverified details

These details havenot been verified by PyPI
Project links
Meta
  • License: GNU General Public License v3 (GPLv3) (GPL-3.0-only)
  • Author:Sam Roeca
  • Tags nginx, completion, refactoring, vim, neovim, lsp, language-server-protocol
  • Requires: Python <3.14, >=3.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more aboutinstalling packages.

Source Distribution

nginx_language_server-0.9.0.tar.gz (226.5 kBview details)

UploadedSource

Built Distribution

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more aboutwheel file names.

Copy a direct link to the current filters

nginx_language_server-0.9.0-py3-none-any.whl (232.3 kBview details)

UploadedPython 3

File details

Details for the filenginx_language_server-0.9.0.tar.gz.

File metadata

  • Download URL:nginx_language_server-0.9.0.tar.gz
  • Upload date:
  • Size: 226.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.3 Linux/6.8.0-1021-azure

File hashes

Hashes for nginx_language_server-0.9.0.tar.gz
AlgorithmHash digest
SHA2568066b8e0a450bcaa625b9bc692c938d8e547377c1b8eb2e8ef070f2c2f974106
MD57fb3b7a81066aed51fc05a4adaed1ca5
BLAKE2b-256a8105f7366b5d3681dee1c9d464c4a780dbd88ed94784126a5e0f3796d738bcd

See more details on using hashes here.

File details

Details for the filenginx_language_server-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nginx_language_server-0.9.0-py3-none-any.whl
AlgorithmHash digest
SHA25621611cbc0bae924a05ac85dc23387459c8e351710ed26ec126fc31d44260c8a5
MD527789a86cbee6f5a6d2a797d2fcd91a3
BLAKE2b-256f4f9c1bf4c3d63eb8de8099b6ad3ddec45393667c60aa55f0999373f5a6f7810

See more details on using hashes here.

Supported by

AWS Cloud computing and Security SponsorDatadog MonitoringDepot Continuous IntegrationFastly CDNGoogle Download AnalyticsPingdom MonitoringSentry Error loggingStatusPage Status page

[8]ページ先頭

©2009-2025 Movatter.jp