checkhealth and go-enum update

pull/274/head
ray-x 1 year ago
parent 6ff9cbad4c
commit dcb8662e6c

@ -366,7 +366,7 @@ return {
require('go.govulncheck').run(opts.fargs)
end, { nargs = '*' })
create_cmd('GoEnum', function(opts)
require('go.asyncmake').stopjob(unpack(opts.fargs))
require('go.enum').run(unpack(opts.fargs))
end, { nargs = '*' })
end,
}

@ -51,6 +51,12 @@ local function binary_check()
warn("curl is not installed, gocheat will not work.")
end
local parser_path = vim.api.nvim_get_runtime_file('parser' .. sep .. 'go.so', false)[1]
if not parser_path then
warn('go treesitter parser not found, please Run `:TSInstallSync go`')
no_err = false
end
if no_err then
ok("All binaries installed")
else

@ -26,7 +26,7 @@ local url = {
['json-to-struct'] = 'github.com/tmc/json-to-struct',
gomvp = 'github.com/abenz1267/gomvp',
govulncheck = 'golang.org/x/vuln/cmd/govulncheck',
goenum = 'github.com/abice/go-enum',
['go-enum'] = 'github.com/abice/go-enum',
}
local tools = {}

Loading…
Cancel
Save