mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
added haskell dap and hoogle
This commit is contained in:
@@ -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" },
|
||||
}
|
||||
|
||||
|
||||
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