Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add document for server_info.env #1559

Merged
merged 3 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/mac_neovim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,11 @@ jobs:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v4
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v5
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/mac_vim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,11 @@ jobs:
repository: thinca/vim-themis
path: ./vim-themis
ref: v1.5.5
- name: Cache gopls
id: cache-gopls
uses: actions/cache@v4
with:
path: bin/gopls
key: ${{ runner.os }}-${{ env.VIM_LSP_GO_VERSION }}-${{ env.VIM_LSP_GOPLS_VERSION }}-${{ env.VIM_LSP_GOPLS_CACHE_VER }}-gopls
- name: Install Go for gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
uses: actions/setup-go@v5
with:
go-version: ${{ env.VIM_LSP_GO_VERSION }}
- name: Install gopls
if: steps.cache-gopls.outputs.cache-hit != 'true'
shell: bash
run: |
go install golang.org/x/tools/gopls@v${{ env.VIM_LSP_GOPLS_VERSION }}
Expand Down
15 changes: 11 additions & 4 deletions doc/vim-lsp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ You can use tcp to connect to LSP servers that don't support stdio. Set host
and port to tcp. The Godot game engine uses 6008 as its LSP port and godot
ftplugins define gdscript or gdscript3 filetype: >

au User lsp_setup
au User lsp_setup
\ call lsp#register_server({
\ 'name': 'godot',
\ 'tcp': "localhost:6008",
Expand All @@ -290,7 +290,7 @@ vim-lsp supports the |:CheckHealth| command which can be useful when debugging
lsp configuration issues.

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

WIKI *vim-lsp-configure-wiki*
For documentation on how to configure other language servers refer
Expand Down Expand Up @@ -905,7 +905,7 @@ g:lsp_max_buffer_size *g:lsp_max_buffer_size*
`g:lsp_max_buffer_size` (measured in bytes), the following features
are disabled:
* Semantic highlighting

This functionality can be disabled by setting `g:lsp_max_buffer_size`
to a negative value.

Expand Down Expand Up @@ -1402,6 +1402,13 @@ The vim |dict| containing information about the server.
Example: >
'config': { 'diagnostics': v:false }
<
* env:
optional vim |dict|
Used to pass environment variables to the cmd.
Example: >
'env': { 'GOFLAGS': '-tags=wireinject' }
<

refresh_pattern *vim-lsp-refresh_pattern*
Type: |String| (|pattern|)
Default: `'\k*$'`
Expand Down Expand Up @@ -2245,7 +2252,7 @@ Popup Formatting *vim-lsp-popup-format*

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

For customization, see
For customization, see
|formatprg|.

==============================================================================
Expand Down
Loading