mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-08 04:38:06 +01:00
Working config (until now)
This commit is contained in:
66
home/nvim/plugins/dap.nix
Normal file
66
home/nvim/plugins/dap.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim.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;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./telescope.nix
|
||||
@@ -7,6 +7,7 @@
|
||||
./lualine.nix
|
||||
./dashboard.nix
|
||||
./neotree.nix
|
||||
./dap.nix
|
||||
];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
|
||||
Reference in New Issue
Block a user