mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-25 19:17:23 +08:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -131,18 +131,26 @@ javalsp *ale-java-javalsp*
|
||||
|
||||
To enable Java LSP linter you need to download and build the vscode-javac
|
||||
language server from https://github.com/georgewfraser/java-language-server.
|
||||
Simply download the source code and then build a distribution:
|
||||
|
||||
scripts/link_mac.sh
|
||||
Before building the language server you need to install pre-requisites: npm,
|
||||
maven, and protobuf. You also need to have Java 13 and JAVA_HOME properly
|
||||
set.
|
||||
|
||||
or
|
||||
After downloading the source code and installing all pre-requisites you can
|
||||
build the language server with the included build.sh script:
|
||||
|
||||
scripts/link_windows.sh
|
||||
scripts/build.sh
|
||||
|
||||
This generates a dist/mac or dist/windows directory that contains the
|
||||
language server. To let ALE use this language server you need to set the
|
||||
This will create launch scripts for Linux, Mac, and Windows in the dist folder
|
||||
within the repo:
|
||||
|
||||
- lang_server_linux.sh
|
||||
- lang_server_mac.sh
|
||||
- lang_server_windows.sh
|
||||
|
||||
To let ALE use this language server you need to set the
|
||||
g:ale_java_javalsp_executable variable to the absolute path of the launcher
|
||||
executable in this directory.
|
||||
executable for your platform.
|
||||
|
||||
g:ale_java_javalsp_executable *g:ale_java_javalsp_executable*
|
||||
*b:ale_java_javalsp_executable*
|
||||
@@ -152,7 +160,7 @@ g:ale_java_javalsp_executable *g:ale_java_javalsp_executable*
|
||||
This variable must be set to the absolute path of the language server launcher
|
||||
executable. For example:
|
||||
>
|
||||
let g:ale_java_javalsp_executable=/java-language-server/dist/mac/bin/launcher
|
||||
let g:ale_java_javalsp_executable=/java-language-server/dist/lang_server_linux.sh
|
||||
<
|
||||
|
||||
g:ale_java_javalsp_config *g:ale_java_javalsp_config*
|
||||
|
||||
@@ -2,6 +2,29 @@
|
||||
ALE Shell Integration *ale-sh-options*
|
||||
|
||||
|
||||
===============================================================================
|
||||
bashate *ale-sh-bashate*
|
||||
|
||||
g:ale_sh_bashate_executable *g:ale_sh_bashate_executable*
|
||||
*b:ale_sh_bashate_executable*
|
||||
Type: |String|
|
||||
Default: `'bashate'`
|
||||
|
||||
This variable sets executable used for bashate.
|
||||
|
||||
|
||||
g:ale_sh_bashate_options *g:ale_sh_bashate_options*
|
||||
*b:ale_sh_bashate_options*
|
||||
Type: |String|
|
||||
Default: `''`
|
||||
|
||||
With this variable we are able to pass extra arguments for bashate. For
|
||||
example to ignore the indentation rule:
|
||||
|
||||
>
|
||||
let g:ale_sh_shellcheck_options = '-i E003'
|
||||
<
|
||||
|
||||
===============================================================================
|
||||
sh-language-server *ale-sh-language-server*
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ Notes:
|
||||
* Awk
|
||||
* `gawk`
|
||||
* Bash
|
||||
* `bashate`
|
||||
* `language-server`
|
||||
* `shell` (-n flag)
|
||||
* `shellcheck`
|
||||
@@ -511,3 +512,5 @@ Notes:
|
||||
* `yamllint`
|
||||
* YANG
|
||||
* `yang-lsp`
|
||||
* Zig
|
||||
* `zls`
|
||||
|
||||
33
doc/ale-zig.txt
Normal file
33
doc/ale-zig.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
===============================================================================
|
||||
ALE Zig Integration *ale-zig-options*
|
||||
*ale-integration-zig*
|
||||
|
||||
===============================================================================
|
||||
Integration Information
|
||||
|
||||
Currently, the only supported linter for zig is zls.
|
||||
|
||||
===============================================================================
|
||||
zls *ale-zig-zls*
|
||||
|
||||
g:ale_zig_zls_executable *g:ale_zig_zls_executable*
|
||||
*b:ale_zig_zls_executable*
|
||||
Type: |String|
|
||||
Default: `'zls'`
|
||||
|
||||
This variable can be modified to change the executable path for `zls`.
|
||||
|
||||
|
||||
g:ale_zig_zls_config *g:ale_zig_zls_config*
|
||||
*b:ale_zig_zls_config*
|
||||
Type: |Dictionary|
|
||||
Default: `{}`
|
||||
|
||||
WARNING: As of writing, zls does not support receiving configuration
|
||||
from the client. This variable is a PLACEHOLDER until it does.
|
||||
|
||||
Dictionary with configuration settings for zls.
|
||||
|
||||
|
||||
===============================================================================
|
||||
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|
||||
@@ -2601,6 +2601,7 @@ documented in additional help files.
|
||||
sasslint..............................|ale-scss-sasslint|
|
||||
stylelint.............................|ale-scss-stylelint|
|
||||
sh......................................|ale-sh-options|
|
||||
bashate...............................|ale-sh-bashate|
|
||||
sh-language-server....................|ale-sh-language-server|
|
||||
shell.................................|ale-sh-shell|
|
||||
shellcheck............................|ale-sh-shellcheck|
|
||||
@@ -2677,6 +2678,8 @@ documented in additional help files.
|
||||
yamllint..............................|ale-yaml-yamllint|
|
||||
yang....................................|ale-yang-options|
|
||||
yang-lsp..............................|ale-yang-lsp|
|
||||
zig.....................................|ale-zig-options|
|
||||
zls...................................|ale-zig-zls|
|
||||
|
||||
|
||||
===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user