diff options
| author | Hendrik Ziegler <hendrikziegler@outlook.de> | 2024-04-15 12:45:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 03:45:49 -0700 |
| commit | 9266dc26862d8f3556c2ca77602e811472b4c5b8 (patch) | |
| tree | 497445781e1da15c37f9db6d2df0d8c7dfa3e11b /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar.gz nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar.bz2 nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar.lz nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar.xz nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.tar.zst nvim-lspconfig-9266dc26862d8f3556c2ca77602e811472b4c5b8.zip | |
fix(gopls): GOMODCACHE is now found in gitbash #3064
Probem:
Error due to the command being processed as a single string by git bash's bash.exe.
Solution:
Pass the command and arguments as a list rather than a string.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/gopls.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/server_configurations/gopls.lua b/lua/lspconfig/server_configurations/gopls.lua index f27033b7..d1c96a21 100644 --- a/lua/lspconfig/server_configurations/gopls.lua +++ b/lua/lspconfig/server_configurations/gopls.lua @@ -9,7 +9,7 @@ return { root_dir = function(fname) -- see: https://github.com/neovim/nvim-lspconfig/issues/804 if not mod_cache then - local result = async.run_command 'go env GOMODCACHE' + local result = async.run_command { 'go', 'env', 'GOMODCACHE' } if result and result[1] then mod_cache = vim.trim(result[1]) end |
