mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 04:04:34 +02:00
plugins/dap: remove with lib
This commit is contained in:
parent
fe2789e407
commit
e48dda4fe4
6 changed files with 36 additions and 24 deletions
|
@ -5,12 +5,20 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
inherit (lib)
|
||||
mkAdapterOption
|
||||
mkEnableOption
|
||||
mkOption
|
||||
mkSignOption
|
||||
optionalString
|
||||
types
|
||||
;
|
||||
|
||||
cfg = config.plugins.dap;
|
||||
|
||||
dapHelpers = import ./dapHelpers.nix { inherit lib helpers; };
|
||||
in
|
||||
with dapHelpers;
|
||||
{
|
||||
imports = [
|
||||
./dap-go.nix
|
||||
|
@ -30,8 +38,8 @@ with dapHelpers;
|
|||
};
|
||||
|
||||
adapters = helpers.mkCompositeOption "Dap adapters." {
|
||||
executables = mkAdapterOption "executable" executableAdapterOption;
|
||||
servers = mkAdapterOption "server" serverAdapterOption;
|
||||
executables = mkAdapterOption "executable" dapHelpers.executableAdapterOption;
|
||||
servers = mkAdapterOption "server" dapHelpers.serverAdapterOption;
|
||||
};
|
||||
|
||||
configurations =
|
||||
|
@ -85,7 +93,7 @@ with dapHelpers;
|
|||
}
|
||||
// cfg.extraOptions;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
lib.mkIf cfg.enable {
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraConfigLua =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue