All Projects → yaegassy → coc-nginx

yaegassy / coc-nginx

Licence: MIT License
nginx-language-server extension for coc.nvim

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to coc-nginx

coc-volar
Volar (Fast Vue Language Support) extension for coc.nvim
Stars: ✭ 143 (+793.75%)
Mutual labels:  coc, coc-nvim, coc-extensions
coc-sql
SQL extension for coc.nvim
Stars: ✭ 104 (+550%)
Mutual labels:  coc, coc-nvim
coc-toml
Toml extension for coc-nvim, using taplo for lsp engine
Stars: ✭ 52 (+225%)
Mutual labels:  coc, coc-nvim
coc-discord-rpc
😎 An awesome and fully customizable coc-extension to get Discord Rich Presence integration with NeoVim.
Stars: ✭ 139 (+768.75%)
Mutual labels:  coc, coc-extensions
coc-webview
Using an external browser to support the webview in coc.nvim.
Stars: ✭ 21 (+31.25%)
Mutual labels:  coc, coc-nvim
FTerm.nvim
🔥 No-nonsense floating terminal plugin for neovim 🔥
Stars: ✭ 353 (+2106.25%)
Mutual labels:  neovim
nvim
Blazing fast neovim setup with 120 plugins.
Stars: ✭ 108 (+575%)
Mutual labels:  neovim
vim-stamp
A vim plugin that replaces the currently selected text with the text in the delete register
Stars: ✭ 13 (-18.75%)
Mutual labels:  neovim
readablefold.vim
A Vim plugin to improve foldtext for better looks
Stars: ✭ 21 (+31.25%)
Mutual labels:  neovim
luv-vimdocs
No description or website provided.
Stars: ✭ 51 (+218.75%)
Mutual labels:  neovim
boo-colorscheme-nvim
Boo is a colorscheme for Neovim with handcrafted support for LSP, Treesitter.
Stars: ✭ 62 (+287.5%)
Mutual labels:  neovim
cosmos-nvim
A must-have configuration for Spacemacs users after defecting to Vim
Stars: ✭ 62 (+287.5%)
Mutual labels:  neovim
dotfiles
My dotfiles with dwm, qtile and awesome.
Stars: ✭ 178 (+1012.5%)
Mutual labels:  neovim
nvim-lsp-compl
A fast and asynchronous auto-completion plugin for Neovim >= 0.5, focused on LSP.
Stars: ✭ 46 (+187.5%)
Mutual labels:  neovim
dotfiles
dotfiles of my linux setup
Stars: ✭ 25 (+56.25%)
Mutual labels:  neovim
vusted
A busted wrapper for testing neovim plugin
Stars: ✭ 34 (+112.5%)
Mutual labels:  neovim
drex.nvim
Another directory/file explorer for Neovim written in Lua
Stars: ✭ 15 (-6.25%)
Mutual labels:  neovim
spellsitter.nvim
Treesitter powered spellchecker
Stars: ✭ 251 (+1468.75%)
Mutual labels:  neovim
vimconf-2021
Presentation for VimConf 2021
Stars: ✭ 26 (+62.5%)
Mutual labels:  neovim
jumpwire.nvim
Jump easily between related files.
Stars: ✭ 16 (+0%)
Mutual labels:  neovim

coc-nginx

nginx-language-server extension for coc.nvim

coc-nginx-demo

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

  1. nginx.server.commandPath
  2. current environment PATH (e.g. nginx-language-server in venv, or global)
  3. 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.

:CocCommand 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/@yaegassy/coc-nginx-data/nginx-language-server/venv/bin/nginx-language-server
      • Windows: ~/AppData/Local/coc/extensions/@yaegassy/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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].