+1
.gitignore
+1
.gitignore
···
1
+
playground/
+5
lua/gopher/init.lua
+5
lua/gopher/init.lua
+32
lua/gopher/installer.lua
+32
lua/gopher/installer.lua
···
1
+
local Job = require "plenary.job"
2
+
local M = {
3
+
urls = {},
4
+
}
5
+
6
+
local function install(pkg)
7
+
local url = M.urls[pkg] .. "@latest"
8
+
9
+
Job
10
+
:new({
11
+
command = "go",
12
+
args = { "install", url },
13
+
on_exit = function(_, ret_val)
14
+
if ret_val ~= nil then
15
+
print("command exited with code " .. ret_val)
16
+
return
17
+
end
18
+
19
+
print("install " .. url .. " finished")
20
+
end,
21
+
})
22
+
:sync()
23
+
end
24
+
25
+
---Install required go deps
26
+
function M.install_all()
27
+
for pkg, _ in pairs(M.urls) do
28
+
install(pkg)
29
+
end
30
+
end
31
+
32
+
return M
+42
nvim.toml
+42
nvim.toml
···
1
+
[vim]
2
+
any = true
3
+
4
+
[describe]
5
+
any = true
6
+
[[describe.args]]
7
+
type = "string"
8
+
[[describe.args]]
9
+
type = "function"
10
+
11
+
[it]
12
+
any = true
13
+
[[it.args]]
14
+
type = "string"
15
+
[[it.args]]
16
+
type = "function"
17
+
18
+
[before_each]
19
+
any = true
20
+
[[before_each.args]]
21
+
type = "function"
22
+
[[after_each.args]]
23
+
type = "function"
24
+
25
+
[assert]
26
+
any = true
27
+
28
+
[assert.is_not]
29
+
any = true
30
+
31
+
[[assert.equals.args]]
32
+
type = "any"
33
+
[[assert.equals.args]]
34
+
type = "any"
35
+
[[assert.equals.args]]
36
+
type = "any"
37
+
required = false
38
+
39
+
[[assert.same.args]]
40
+
type = "any"
41
+
[[assert.same.args]]
42
+
type = "any"
+1
selene.toml
+1
selene.toml
···
1
+
std="nvim+lua51"
+5
spec/gopher_spec.lua
+5
spec/gopher_spec.lua