mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-19 05:10:03 +00:00
added haskell dap and hoogle
This commit is contained in:
25
.config/nvim/lua/dap/dap-haskell.lua
Normal file
25
.config/nvim/lua/dap/dap-haskell.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
local dap = require("dap")
|
||||
|
||||
dap.adapters["haskell-debugger"] = {
|
||||
type = "server",
|
||||
port = "${port}",
|
||||
executable = {
|
||||
command = "hdb",
|
||||
args = {
|
||||
"server", "--port", "${port}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dap.configurations.haskell = {
|
||||
{
|
||||
type = "haskell-debugger",
|
||||
request = "launch",
|
||||
name = "hdb:file:main",
|
||||
entryFile = "${file}",
|
||||
entryPoint = "main",
|
||||
projectRoot = "${workspaceFolder}",
|
||||
entryArgs = {},
|
||||
extraGhcArgs = {},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user