diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-02-06 21:34:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 21:34:19 +0900 |
commit | f9f2ad276507ec6fb3d92f3f3525de1cb4d17281 (patch) | |
tree | 586defd5924b7ff29c4e38fbf6c0affeb129789d /doc | |
parent | b88d3c4e4bcaedcf42872186a96f7c21975fc68e (diff) | |
parent | 26b92f73b5e0f54b0053cf2bd69b79f4f01afe91 (diff) | |
download | ale-f9f2ad276507ec6fb3d92f3f3525de1cb4d17281.zip |
Merge pull request #3571 from rfwatson/gopls-add-init-options
gopls: add go_gopls_init_options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale-go.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/ale-go.txt b/doc/ale-go.txt index 5c0791bc..8364fd5b 100644 --- a/doc/ale-go.txt +++ b/doc/ale-go.txt @@ -207,6 +207,27 @@ g:ale_go_gopls_options *g:ale_go_gopls_options* Type: |String| Default: `''` + Command-line options passed to the gopls executable. See `gopls -h`. + + +g:ale_go_gopls_init_options *g:ale_go_gopls_init_options* + *b:ale_go_gopls_init_options* + Type: |Dictionary| + Default: `{}` + + LSP initialization options passed to gopls. This can be used to configure + the behaviour of gopls. + + Example: > + let g:ale_go_gopls_init_options = {'ui.diagnostic.analyses': { + \ 'composites': v:false, + \ 'unusedparams': v:true, + \ 'unusedresult': v:true, + \ }} +< + + For a full list of supported analyzers, see: + https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md =============================================================================== govet *ale-go-govet* |