Skip to content

Commit a8f244a

Browse files
authored
Add document for server_info.env (#1559)
* Add document for server_info.env * Fix format * Remove action cache to avoid random fails
1 parent f7ccf00 commit a8f244a

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

.github/workflows/mac_neovim.yml

-8
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,11 @@ jobs:
5151
repository: thinca/vim-themis
5252
path: ./vim-themis
5353
ref: v1.5.5
54-
- name: Cache gopls
55-
id: cache-gopls
56-
uses: actions/cache@v4
57-
with:
58-
path: bin/gopls
59-
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
6054
- name: Install Go for gopls
61-
if: steps.cache-gopls.outputs.cache-hit != 'true'
6255
uses: actions/setup-go@v5
6356
with:
6457
go-version: ${{ env.VIM_LSP_GO_VERSION }}
6558
- name: Install gopls
66-
if: steps.cache-gopls.outputs.cache-hit != 'true'
6759
shell: bash
6860
run: |
6961
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}

.github/workflows/mac_vim.yml

-8
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,11 @@ jobs:
2727
repository: thinca/vim-themis
2828
path: ./vim-themis
2929
ref: v1.5.5
30-
- name: Cache gopls
31-
id: cache-gopls
32-
uses: actions/cache@v4
33-
with:
34-
path: bin/gopls
35-
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
3630
- name: Install Go for gopls
37-
if: steps.cache-gopls.outputs.cache-hit != 'true'
3831
uses: actions/setup-go@v5
3932
with:
4033
go-version: ${{ env.VIM_LSP_GO_VERSION }}
4134
- name: Install gopls
42-
if: steps.cache-gopls.outputs.cache-hit != 'true'
4335
shell: bash
4436
run: |
4537
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}

doc/vim-lsp.txt

+11-4
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ You can use tcp to connect to LSP servers that don't support stdio. Set host
271271
and port to tcp. The Godot game engine uses 6008 as its LSP port and godot
272272
ftplugins define gdscript or gdscript3 filetype: >
273273
274-
au User lsp_setup
274+
au User lsp_setup
275275
\ call lsp#register_server({
276276
\ 'name': 'godot',
277277
\ 'tcp': "localhost:6008",
@@ -290,7 +290,7 @@ vim-lsp supports the |:CheckHealth| command which can be useful when debugging
290290
lsp configuration issues.
291291

292292
This command is implemented in vim with the
293-
[vim-healthcheck](https://github.com/rhysd/vim-healthcheck) plugin.
293+
[vim-healthcheck](https://github.com/rhysd/vim-healthcheck) plugin.
294294

295295
WIKI *vim-lsp-configure-wiki*
296296
For documentation on how to configure other language servers refer
@@ -905,7 +905,7 @@ g:lsp_max_buffer_size *g:lsp_max_buffer_size*
905905
`g:lsp_max_buffer_size` (measured in bytes), the following features
906906
are disabled:
907907
* Semantic highlighting
908-
908+
909909
This functionality can be disabled by setting `g:lsp_max_buffer_size`
910910
to a negative value.
911911

@@ -1402,6 +1402,13 @@ The vim |dict| containing information about the server.
14021402
Example: >
14031403
'config': { 'diagnostics': v:false }
14041404
<
1405+
* env:
1406+
optional vim |dict|
1407+
Used to pass environment variables to the cmd.
1408+
Example: >
1409+
'env': { 'GOFLAGS': '-tags=wireinject' }
1410+
<
1411+
14051412
refresh_pattern *vim-lsp-refresh_pattern*
14061413
Type: |String| (|pattern|)
14071414
Default: `'\k*$'`
@@ -2245,7 +2252,7 @@ Popup Formatting *vim-lsp-popup-format*
22452252

22462253
Popup windows use the |gq| operator for formatting content to the window.
22472254

2248-
For customization, see
2255+
For customization, see
22492256
|formatprg|.
22502257

22512258
==============================================================================

0 commit comments

Comments
 (0)