Skip to content

Commit

Permalink
fix(gopls): GOMODCACHE is now found in gitbash
Browse files Browse the repository at this point in the history
  • Loading branch information
bafto committed Mar 10, 2024
1 parent 9933058 commit e10ea1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/gopls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e10ea1b

Please sign in to comment.