mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-14 00:26:54 +00:00
language/clang: use new dap config format
This commit is contained in:
parent
b4e32220dc
commit
987867905e
5 changed files with 65 additions and 34 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./presets
|
||||
./config.nix
|
||||
./nvim-dap.nix
|
||||
];
|
||||
|
|
|
|||
5
modules/plugins/debugger/nvim-dap/presets/default.nix
Normal file
5
modules/plugins/debugger/nvim-dap/presets/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./lldb.nix
|
||||
];
|
||||
}
|
||||
22
modules/plugins/debugger/nvim-dap/presets/lldb.nix
Normal file
22
modules/plugins/debugger/nvim-dap/presets/lldb.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.vim.debugger.nvim-dap.presets.lldb;
|
||||
in {
|
||||
options.vim.debugger.nvim-dap.presets.lldb = {
|
||||
enable = mkEnableOption "LLDB debugger using lldb-dap";
|
||||
};
|
||||
|
||||
config.vim.debugger.nvim-dap.adapters = mkIf cfg.enable {
|
||||
lldb = {
|
||||
type = "executable";
|
||||
command = "${pkgs.lldb}/bin/lldb-dap";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue