mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Make phpactor configurable and documented (#5027)
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
Add php_phpactor_executable for phpactor and make it configurable
through php_phpactor_config.
When phpactor was first added in 3b8ff65, it had no configuration. Thus
the documentation for it could be completely blank. That is why it now
seems like an initial addition
Co-authored-by: cos <cos>
This commit is contained in:
@@ -78,6 +78,36 @@ g:ale_php_phan_use_client
|
||||
instead of the phan standalone.
|
||||
|
||||
|
||||
===============================================================================
|
||||
phpactor *ale-php-phpactor*
|
||||
|
||||
*ale-options.php_phpactor_executable*
|
||||
*g:ale_php_phpactor_executable*
|
||||
*b:ale_php_phpactor_executable*
|
||||
php_phpactor_executable
|
||||
g:ale_php_phpactor_executable
|
||||
Type: |String|
|
||||
Default: `'phpactor'`
|
||||
|
||||
This variable sets executable used for phpactor.
|
||||
|
||||
php_phpactor_init_options
|
||||
g:ale_php_phpactor_init_options
|
||||
Type: |Dictionary|
|
||||
Default: `'{}'`
|
||||
|
||||
This variable can be changed to customize the LSP initialization_options.
|
||||
For example: >
|
||||
|
||||
let g:ale_php_phpactor_init_options = {
|
||||
\ 'language_server_phpstan.enabled': v:false,
|
||||
\ 'language_server_psalm.enabled': v:false,
|
||||
\ 'worse_reflection.stub_dir': '%application_root%/.php-stubs'
|
||||
\}
|
||||
<
|
||||
For all available options and explanations, visit
|
||||
https://phpactor.readthedocs.io/en/master/reference/configuration.html
|
||||
|
||||
===============================================================================
|
||||
phpcbf *ale-php-phpcbf*
|
||||
|
||||
|
||||
@@ -3760,6 +3760,7 @@ documented in additional help files.
|
||||
cspell................................|ale-php-cspell|
|
||||
langserver............................|ale-php-langserver|
|
||||
phan..................................|ale-php-phan|
|
||||
phpactor..............................|ale-php-phpactor|
|
||||
phpcbf................................|ale-php-phpcbf|
|
||||
phpcs.................................|ale-php-phpcs|
|
||||
phpmd.................................|ale-php-phpmd|
|
||||
|
||||
Reference in New Issue
Block a user