diff --git a/modules/languages/dart/config.nix b/modules/languages/dart/config.nix index 82b061d..c4761cd 100644 --- a/modules/languages/dart/config.nix +++ b/modules/languages/dart/config.nix @@ -55,8 +55,12 @@ in { on_attach = default_on_attach; flags = lsp_flags, }, + ${optionalString cfg.dap.enable '' + debugger = { + enabled = true, + }, + ''} } - ''; }) ]); diff --git a/modules/languages/dart/dart.nix b/modules/languages/dart/dart.nix index f6694ad..b985224 100644 --- a/modules/languages/dart/dart.nix +++ b/modules/languages/dart/dart.nix @@ -49,6 +49,14 @@ in { }; }; + dap = { + enable = mkOption { + description = "Enable Dart DAP support via flutter-tools"; + type = types.bool; + default = config.vim.languages.enableDAP; + }; + }; + flutter-tools = { enable = mkOption { description = "Enable flutter-tools for flutter support";