added haskell dap and hoogle

This commit is contained in:
radumaco
2026-03-02 18:36:04 +01:00
parent 8749b3cb3a
commit 997a69f1e4
9 changed files with 158 additions and 31 deletions

View File

@@ -5,7 +5,7 @@ local M = {}
-- Adapter (netcoredbg)
dap.adapters.coreclr = {
type = "executable",
command = vim.fn.stdpath("data") .. "/mason/packages/netcoredbg/netcoredbg",
command = "/Users/radumaco/Projects/netcoredbg/build/src/netcoredbg",
args = { "--interpreter=vscode" },
}

View 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 = {},
},
}