all repos

gopher.nvim @ 52cb8fa60046371f4ce453e36d6604d87a8e7ae6

Minimalistic plugin for Go development
2 files changed, 9 insertions(+), 9 deletions(-)
fix(config): respect custom command paths (#135)

Author: Oleksandr Smirnov olexsmir@gmail.com
Committed by: GitHub noreply@github.com
Committed at: 2026-02-28 17:53:38 +0200
Parent: d5d4e21
M lua/gopher/health.lua

@@ -1,18 +1,18 @@

-local c = require("gopher.config").commands +local c = require "gopher.config" local health = {} local deps = { vim_version = "nvim-0.10", bin = { { - bin = c.go, + bin = c.commands.go, msg = "required for `:GoGet`, `:GoMod`, `:GoGenerate`, `:GoWork`, `:GoInstallDeps`, `:GoInstallDepsSync`", }, - { bin = c.gomodifytags, msg = "required for `:GoTagAdd`, `:GoTagRm`" }, - { bin = c.impl, msg = "required for `:GoImpl`" }, - { bin = c.iferr, msg = "required for `:GoIfErr`" }, - { bin = c.gotests, msg = "required for `:GoTestAdd`, `:GoTestsAll`, `:GoTestsExp`" }, - { bin = c.json2go, msg = "required for `:GoJson`" }, + { bin = c.commands.gomodifytags, msg = "required for `:GoTagAdd`, `:GoTagRm`" }, + { bin = c.commands.impl, msg = "required for `:GoImpl`" }, + { bin = c.commands.iferr, msg = "required for `:GoIfErr`" }, + { bin = c.commands.gotests, msg = "required for `:GoTestAdd`, `:GoTestsAll`, `:GoTestsExp`" }, + { bin = c.commands.json2go, msg = "required for `:GoJson`" }, }, treesitter = { { parser = "go", msg = "required for most of the parts of `gopher.nvim`" },
M lua/gopher/impl.lua

@@ -34,7 +34,7 @@ --- panic("not implemented") // TODO: Implement

--- } --- < -local c = require("gopher.config").commands +local c = require "gopher.config" local r = require "gopher._utils.runner" local ts_utils = require "gopher._utils.ts" local u = require "gopher._utils"

@@ -65,7 +65,7 @@ assert(iface ~= "", "interface not provided")

assert(recv ~= "", "receiver not provided") local dir = vim.fn.fnameescape(vim.fn.expand "%:p:h") - local rs = r.sync { c.impl, "-dir", dir, recv, iface } + local rs = r.sync { c.commands.impl, "-dir", dir, recv, iface } if rs.code ~= 0 then error("failed to implement interface: " .. rs.stderr) end