From 5c22ddc2223ded1ee2fbc1c3518d4150471780a6 Mon Sep 17 00:00:00 2001 From: Kebin Liu <1335935+lkebin@users.noreply.github.com> Date: Sun, 2 Jun 2024 10:34:02 +0800 Subject: [PATCH 1/3] Add document for server_info.env --- doc/vim-lsp.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/vim-lsp.txt b/doc/vim-lsp.txt index f47f6ac4c..14096e46b 100644 --- a/doc/vim-lsp.txt +++ b/doc/vim-lsp.txt @@ -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*$'` From 56e1034256deb6635bf2ad30245f327d614d2d67 Mon Sep 17 00:00:00 2001 From: Liu Kebin Date: Sun, 2 Jun 2024 10:58:19 +0800 Subject: [PATCH 2/3] Fix format --- doc/vim-lsp.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/vim-lsp.txt b/doc/vim-lsp.txt index 14096e46b..7d88257e2 100644 --- a/doc/vim-lsp.txt +++ b/doc/vim-lsp.txt @@ -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", @@ -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 @@ -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. @@ -1402,7 +1402,7 @@ The vim |dict| containing information about the server. Example: > 'config': { 'diagnostics': v:false } < - * env: + * env: optional vim |dict| Used to pass environment variables to the cmd. Example: > @@ -2252,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|. ============================================================================== From 7666691a3b1e8d060ca7dc52e0693c3ad0c16c29 Mon Sep 17 00:00:00 2001 From: Liu Kebin Date: Sun, 2 Jun 2024 15:16:46 +0800 Subject: [PATCH 3/3] Remove action cache to avoid random fails --- .github/workflows/mac_neovim.yml | 8 -------- .github/workflows/mac_vim.yml | 8 -------- 2 files changed, 16 deletions(-) diff --git a/.github/workflows/mac_neovim.yml b/.github/workflows/mac_neovim.yml index 897fd2e2d..c06dee23e 100644 --- a/.github/workflows/mac_neovim.yml +++ b/.github/workflows/mac_neovim.yml @@ -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 }} diff --git a/.github/workflows/mac_vim.yml b/.github/workflows/mac_vim.yml index 0a1d7c7f8..1da6efbd1 100644 --- a/.github/workflows/mac_vim.yml +++ b/.github/workflows/mac_vim.yml @@ -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 }}