Home

Awesome

coc-psalm

coc.nvim extension for Psalm language server.

"Psalm" started as a static analysis tool, but now it also has the features of a Language Server.

<img width="780" alt="coc-psalm-screenshot" src="https://user-images.githubusercontent.com/188642/105113456-53e03280-5b08-11eb-8fad-5a2bb0aa33a0.png">

Install

:CocInstall coc-psalm

Note

Install psalm in your project.

composer require --dev vimeo/psalm

Required: The project must contain a psalm.xml or psalm.xml.dist file as a condition for starting "coc-psalm".

./vendor/bin/psalm --init

Configuration options

Commands

Code Actions

Example key mapping (Code Action related)

nmap <silent> ga <Plug>(coc-codeaction-line)

Usage:

In the line with diagnostic message, enter the mapped key (e.g. ga) and you will see a list of code actions that can be performed.

Code Actions (Client side):

Code Actions (Server side):

"psalm.xml" or "psalm.xml.dist" completion and linting and more...

To use it, you need to install coc-xml.

Thanks

License

MIT


This extension is built with create-coc-extension