2 files changed,
9 insertions(+),
9 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed by:
GitHub
noreply@github.com
Committed at:
2026-02-28 17:53:38 +0200
Parent:
d5d4e21
jump to
| M | lua/gopher/health.lua |
| M | lua/gopher/impl.lua |
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