Add nvim-dap, lldb, llvm bintools, netcoredbg

This commit is contained in:
Jeremy Wall 2023-10-05 12:25:16 -04:00
parent 992afd2245
commit 5bb4a001e2
3 changed files with 46 additions and 4 deletions

View File

@ -104,7 +104,8 @@ EOF";
cmp-buffer
cmp-path
cmp-nvim-lsp-signature-help
vimspector
nvim-dap # Debug Adapter Protocol support
#nvim-dap-ui
vimagit
hoon-vim
(nvim-treesitter.withPlugins (_: expected-parsers))
@ -180,6 +181,7 @@ EOF";
octave
kubo
dotnet-sdk_7
netcoredbg
powershell
rust-analyzer
datasette
@ -189,6 +191,8 @@ EOF";
# TODO(jwall): I include these initially for nvim telescope
ripgrep
fd
lldb
llvmPackages.bintools-unwrapped
# TODO add sonic-pi here if it supports the arch
]) ++ (with pkgs.ocamlPackages; [
dune_3

View File

@ -486,3 +486,41 @@ vim.keymap.set("n", "<Leader>tdb", function()
vim.cmd("DBUIToggle")
end)
local dap = require('dap')
dap.adapters.lldb = {
type = "executable",
command = "/run/current-system/sw/bin/lldb",
name = "lldb",
}
dap.adapters.coreclr = {
type = 'executable',
command = '/run/current-system/sw/bin/netcoredbg',
args = {'--interpreter=vscode'}
}
dap.configurations.rust = {
{
name = 'Launch Rust',
type = 'lldb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
},
}
dap.configurations.cs = {
{
name = "Launch - netcoredbg",
type = "coreclr",
request = "launch",
program = function()
return vim.fn.input('Path to dll', vim.fn.getcwd(), 'file')
end,
},
}

6
nix/darwin/flake.lock generated
View File

@ -36,12 +36,12 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-ge0QKt8Mmq+7YdLpqmFPrTQGrCD4qnST31sdkbaFydY=",
"path": "/nix/store/zdq6wjlqxwrd05vk17lgx3sr5fy8wn0w-source/nix/base-system",
"narHash": "sha256-I0oQ+d0VQJ7f+SEZWdSiQfsfgSfGIP5U8hZ0rA4wHOM=",
"path": "/nix/store/fk5p4y8fpc1ly46d2c2byca4g20ianwh-source/nix/base-system",
"type": "path"
},
"original": {
"path": "/nix/store/zdq6wjlqxwrd05vk17lgx3sr5fy8wn0w-source/nix/base-system",
"path": "/nix/store/fk5p4y8fpc1ly46d2c2byca4g20ianwh-source/nix/base-system",
"type": "path"
}
},