mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-03-07 20:18:07 +01:00
feat: first commit
This commit is contained in:
66
config/plugins/dap.nix
Normal file
66
config/plugins/dap.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
plugins = {
|
||||
dap = {
|
||||
enable = true;
|
||||
adapters = {
|
||||
executables = {
|
||||
gdb = {
|
||||
command = "gdb";
|
||||
args = [
|
||||
"-i"
|
||||
"dap"
|
||||
];
|
||||
};
|
||||
lldb = {
|
||||
command = "lldb";
|
||||
};
|
||||
};
|
||||
servers = {
|
||||
codelldb = {
|
||||
port = 13000;
|
||||
executable = {
|
||||
command = "${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
|
||||
args = [
|
||||
"--port"
|
||||
"13000"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
configurations = {
|
||||
cpp = [
|
||||
{
|
||||
name = "Launch GDB";
|
||||
type = "gdb";
|
||||
request = "launch";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
|
||||
end'';
|
||||
}
|
||||
{
|
||||
name = "Launch LLDB";
|
||||
type = "lldb";
|
||||
request = "launch";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end'';
|
||||
}
|
||||
{
|
||||
name = "Launch CodeLLDB";
|
||||
type = "codelldb";
|
||||
request = "launch";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
dap-ui.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user