From d5a7a2df1fdeb2d82c51a0d78493bfb7241160c2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 24 Jun 2024 17:06:18 +0200 Subject: checkpoint --- config/essentials/vis/vis-go.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/essentials/vis/vis-go.lua') 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 -- cgit v1.2.3