Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions doc/lsp/vim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,39 @@ Client Guides
::

Plug 'neoclide/coc.nvim', {'branch': 'release'}

Once you have both installed there are two ways of integrating `phpactor` into `coc`:

- **Installing the coc phpactor extension**:

Restart VIM and type ``:CocInstall coc-phpactor``.

If Phpactor is already installed you can set ``phpactor.path`` in
``:CocConfig`` to point to the Phpactor binary.

At the root level:

::

{
"phpactor.enable": true,
"phpactor.path": "/home/vivo/phpactor/bin/phpactor"
}

- **Without phpactor extension**:

Restart VIM and type `:CocConfig`, you can set up phpactor as a language server for php files directly to `coc-settings.json`:

::

"languageserver": {
"phpactor": {
"command": "phpactor",
"args": ["language-server"],
"trace.server": "verbose",
"filetypes": ["php"]
}
}

See `coc-phpactor<https://github.com/phpactor/coc-phpactor>` for more
information.
Expand Down