-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.nvim-dap.lua
54 lines (52 loc) · 1.14 KB
/
.nvim-dap.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local dap = require("dap")
dap.configurations.scala = {
{
type = "scala",
request = "launch",
name = "web",
metals = {
runType = "runOrTestFile",
mainClass = "sparkshow.SparkshowLauncher",
args = { ":web" }, -- here just as an example
},
},
{
type = "scala",
request = "launch",
name = "create-user",
metals = {
runType = "runOrTestFile",
mainClass = "sparkshow.SparkshowLauncher",
args = {
":create-user -cli-command true --username test",
"-cli-command",
"true",
"--username",
"test",
"--password test",
"--email [email protected]",
"--roles ADMIN"
}, -- here just as an example
}
},
{
type = "scala",
request = "launch",
metals = {
runType = "testTarget",
},
},
{
type = "scala",
request = "launch",
name = "play",
buildTarget = "play-test-build",
metals = {
mainClass = "app.Server",
buildTarget = "play-test-build",
runType = "run",
args = {},
jvmOptions = {"-Dconfig.file=/path/to/production.conf"}
}
}
}