diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-24 17:06:18 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-24 17:06:18 +0200 |
commit | d5a7a2df1fdeb2d82c51a0d78493bfb7241160c2 (patch) | |
tree | 1ac695a756e3570bf06b1a7658d143fc2b264657 /config/essentials/vis/vis-go.lua | |
parent | 1f7e952a75a870b0a4e9900964cae3729c216cc3 (diff) |
checkpoint
Diffstat (limited to 'config/essentials/vis/vis-go.lua')
-rw-r--r-- | config/essentials/vis/vis-go.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/essentials/vis/vis-go.lua b/config/essentials/vis/vis-go.lua index 647e003..bb0c7ab 100644 --- a/config/essentials/vis/vis-go.lua +++ b/config/essentials/vis/vis-go.lua @@ -5,6 +5,7 @@ Changes made: - check if line, col in godef() - no formatting because already handled by format.lua - removed the goimports option +- set env variable for godef that fixes "no definition found" --]] local function jump_to(path, line, col) @@ -37,7 +38,7 @@ local function godef() local file = win.file local pos = win.selection.pos - local cmd = string.format("godef -i -o %d", pos) + local cmd = string.format("GO111MODULE=off godef -i -o %d", pos) local status, out, err = vis:pipe(file, { start = 0, finish = file.size }, cmd) if status ~= 0 or not out then if err then |