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 /ale_linters | |
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 'ale_linters')
-rw-r--r-- | ale_linters/go/gopls.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/go/gopls.vim b/ale_linters/go/gopls.vim index dcff5ec7..f3f1bd6b 100644 --- a/ale_linters/go/gopls.vim +++ b/ale_linters/go/gopls.vim @@ -4,6 +4,7 @@ call ale#Set('go_gopls_executable', 'gopls') call ale#Set('go_gopls_options', '--mode stdio') +call ale#Set('go_gopls_init_options', {}) function! ale_linters#go#gopls#GetCommand(buffer) abort return ale#go#EnvString(a:buffer) @@ -31,4 +32,5 @@ call ale#linter#Define('go', { \ 'executable': {b -> ale#Var(b, 'go_gopls_executable')}, \ 'command': function('ale_linters#go#gopls#GetCommand'), \ 'project_root': function('ale_linters#go#gopls#FindProjectRoot'), +\ 'initialization_options': {b -> ale#Var(b, 'go_gopls_init_options')}, \}) |