issue #111 fixpurals

pull/119/head
ray-x 2 years ago
parent c7bf2f59c6
commit 1fabdb4fd9

@ -82,16 +82,20 @@ function reftool.fixplurals()
require("go.install").install(fx) require("go.install").install(fx)
local curdir = fn.getcwd() local curdir = fn.getcwd()
local filedir = fn.expand("%:p:h") local filedir = fn.expand("%:p:h")
local setup = { fx, "," } local setup = { fx, "." }
local cdpkg = string.format("exec cd %s", filedir) local cdpkg = string.format("cd %s", filedir)
local cdback = string.format("exec cd %s", curdir) local cdback = string.format("cd %s", curdir)
vim.cmd(cdpkg) vim.cmd(cdpkg)
vim.fn.jobstart(setup, { local d = vim.fn.systemlist(setup)
on_stdout = function(jobid, data, event) log(d)
vim.cmd(cdback)
-- vim.notify('fixplurals finished ', vim.lsp.log_levels.DEBUG) vim.cmd(cdback)
end, -- vim.fn.jobstart(setup, {
}) -- on_stdout = function(jobid, data, event)
-- vim.cmd(cdback)
-- log(setup, data)
-- end,
-- })
end end
reftool.fillswitch = function() reftool.fillswitch = function()

Loading…
Cancel
Save