use command GoEnv load .env file. But it does not take effect.
I looked at the code and saw that there might be a problem with the line below
|
if vfn.filereadable(f) then |
vfn.filereadable(f) will retrun 0 if f is not readable.
However, in the if conditional statement, if use if 0 then, it will be considered true, which will cause a direct return and result in an inability to load the environment file.
use command GoEnv load .env file. But it does not take effect.
I looked at the code and saw that there might be a problem with the line below
go.nvim/lua/go/env.lua
Line 10 in c6d5ca2
vfn.filereadable(f)will retrun 0 iffis not readable.However, in the if conditional statement, if use
if 0 then, it will be considered true, which will cause a direct return and result in an inability to load the environment file.