🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@yaegassy/coc-nginx

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yaegassy/coc-nginx

nginx-language-server extension for coc.nvim

Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
7
-91.14%
Maintainers
1
Weekly downloads
 
Created
Source

coc-nginx

nginx-language-server extension for coc.nvim

coc-nginx-demo

Features

  • Completion
  • Hover
  • Format by nginxfmt

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)

Bult-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.

:CocComannd nginx.installLanguageServer

Configuration options

  • nginx.enable: Enable coc-nginx extension, default: true
  • nginx.server.commandPath: The custom path to the nginx-language-server (Absolute path), default: ""
  • nginx.builtin.pythonPath: Python 3.x path (Absolute path) to be used for built-in install, default: ""
  • nginx.nginxfmt.commandPath: The custom path to the nginxfmt (Absolute path), default: ""
  • nginx.nginxfmt.indent: Specify number of spaces for indentation, default: 4

Commands

  • nginx.installLanguageServer: Install/Upgrade nginx-language-server and more tools (builtin)
    • It will be installed in this path:
      • Mac/Linux: ~/.config/coc/extensions/coc-nginx-data/nginx-language-server/venv/bin/nginx-language-server
      • Windows: ~/AppData/Local/coc/extensions/coc-nginx-data/nginx-language-server/venv/Scripts/nginx-language-server.exe
  • nginx.format: Run nginxfmt

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

Keywords

coc.nvim

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts