[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(config): respect custom command paths (#135)

authored by

Oleksandr Smirnov and committed by
GitHub
52cb8fa6 d5d4e214

+9 -9
+7 -7
lua/gopher/health.lua
··· 1 - local c = require("gopher.config").commands 1 + local c = require "gopher.config" 2 2 local health = {} 3 3 4 4 local deps = { 5 5 vim_version = "nvim-0.10", 6 6 bin = { 7 7 { 8 - bin = c.go, 8 + bin = c.commands.go, 9 9 msg = "required for `:GoGet`, `:GoMod`, `:GoGenerate`, `:GoWork`, `:GoInstallDeps`, `:GoInstallDepsSync`", 10 10 }, 11 - { bin = c.gomodifytags, msg = "required for `:GoTagAdd`, `:GoTagRm`" }, 12 - { bin = c.impl, msg = "required for `:GoImpl`" }, 13 - { bin = c.iferr, msg = "required for `:GoIfErr`" }, 14 - { bin = c.gotests, msg = "required for `:GoTestAdd`, `:GoTestsAll`, `:GoTestsExp`" }, 15 - { bin = c.json2go, msg = "required for `:GoJson`" }, 11 + { bin = c.commands.gomodifytags, msg = "required for `:GoTagAdd`, `:GoTagRm`" }, 12 + { bin = c.commands.impl, msg = "required for `:GoImpl`" }, 13 + { bin = c.commands.iferr, msg = "required for `:GoIfErr`" }, 14 + { bin = c.commands.gotests, msg = "required for `:GoTestAdd`, `:GoTestsAll`, `:GoTestsExp`" }, 15 + { bin = c.commands.json2go, msg = "required for `:GoJson`" }, 16 16 }, 17 17 treesitter = { 18 18 { parser = "go", msg = "required for most of the parts of `gopher.nvim`" },
+2 -2
lua/gopher/impl.lua
··· 34 34 --- } 35 35 --- < 36 36 37 - local c = require("gopher.config").commands 37 + local c = require "gopher.config" 38 38 local r = require "gopher._utils.runner" 39 39 local ts_utils = require "gopher._utils.ts" 40 40 local u = require "gopher._utils" ··· 65 65 assert(recv ~= "", "receiver not provided") 66 66 67 67 local dir = vim.fn.fnameescape(vim.fn.expand "%:p:h") 68 - local rs = r.sync { c.impl, "-dir", dir, recv, iface } 68 + local rs = r.sync { c.commands.impl, "-dir", dir, recv, iface } 69 69 if rs.code ~= 0 then 70 70 error("failed to implement interface: " .. rs.stderr) 71 71 end